What will be the output of the following C code?
int ch= ' ';
if(isgraph(ch))
printf("ch = %c can be printed \n",ch);
else
printf("ch=%c cannot be printed \n",ch);
int ch= ' ';
if(isgraph(ch))
printf("ch = %c can be printed \n",ch);
else
printf("ch=%c cannot be printed \n",ch);
A. ch = ' ' can be printed
B. ch = ' ' cannot be printed
C. compile error
D. run-time error
Answer: Option B
Related Questions on Arrays and Strings
Join The Discussion