Vidyalelo
C++ Programming · Q129

C++ miscellaneous

Programming · C++ Programming · question 129

Q129

What will be the output of the following C++ code? #include #include int main () int i = 0; char str[] = "C"; while (str[i]) if (isalpha(str[i])) printf ("alphabetic"); else printf ("not alphabetic"); i++; return 0;

A.
alphabetic
Answer
B.
not alphabetic
C.
Error
D.
alphabeticnot alphabetic

Answer: Option A

Solution

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