MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program? #include int main() { int i; char c; for(i=1; i<=5; i++) { scanf("%c", &c); /* given input is 'b' */ ungetc(c, stdout); printf("%c", c); ungetc(c, stdin); } return 0; } |
| A. | bbbb |
| B. | bbbbb |
| C. | b |
| D. | Error in ungetc statement. |
| Answer» D. Error in ungetc statement. | |