Examveda
Examveda

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

D. Little Star

Answer: Option C


This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Related Questions on Arrays and Strings