C Programming MCQ

1:

Consider the following program fragment

 char c = ' a ';
 while ( c++ <= ' z ')
 putchar ( xxx );


If the required output is abcdefghijklmnopqrstuvwxyz, then xxx should be

A.

c

B.

c++

C.

c-1

D.

-c

 

Answer : C

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.