Home > c program fragment questions

Study 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-1

    Leave a Comment

    Your email address will not be published. Required fields are marked *