MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program? #include<stdio.h> int main() { unsigned int i = 65535; /* Assume 2 byte integer*/ while(i++ != 0) printf("%d",++i); printf(" n"); return 0; } |
| A. | Infinite loop |
| B. | 0 1 2 ... 65535 |
| C. | 0 1 2 ... 32767 - 32766 -32765 -1 0 |
| D. | No output |
| Answer» B. 0 1 2 ... 65535 | |