Vidyalelo
C Programming · Q110

Arrays and Strings

Programming · C Programming · question 110

Q110

What will be the output of the following C code? int i = 0; char c; char str[ ] = "Little Star"; while(str[i]) putchar (toupper(str[i])); i++;

A.
little star
B.
lITTLE sTAR
C.
LITTLE STAR
Answer
D.
Little Star

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board