Computer Science, asked by dave2070, 1 year ago

What will be the output of the program? int main() { unsigned int i = 65535; /* assume 2 byte integer*/ while(i++ != 0) printf("%d",++i); printf("\n"); return 0; } infinite loop 0 1 2 ... 65535 0 1 2 ... 32767 - 32766 -32765 -1 0 no output?

Answers

Answered by ChadwickRoshan
0
I think the answer would be
1 2 3 65536 ( no zero at the start ).
Kindly correct it if it's a mistake.
Have a great day
Similar questions