

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following statement are correct about the program given below?#include <stdio.h>int main ( ){ char ch; while (ch = 0; ch <= 255; ch++) printf ("ASCII value %d Character %c n", ch, ch); return 0;} |
A. | The program goes in an infinite loop. |
B. | The program prints all the ASCII values with its corresponding characters. |
C. | Error: ch should be declared as an int. |
D. | The program reports an error as while loop cannot take the form of a for loop. |
Answer» E. | |