[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Pointers - Discussion

Home > C Programming > Pointers > MCQs Questions Discussion

24 / 60

What will be output of the following "c" code?

#include <stdio.h>
void main()
{
char * str = "hello"; 
char * ptr = str; 
char least = 127; 
while (*ptr++)
least = (*ptr<least )?*ptr :least;
printf("%d",least);
}

A1

B5

C6

D0

ECompilation Error

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!