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++;
}
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
D. Little Star
Answer: Option C
Related Questions on Arrays and Strings
Join The Discussion