Top

Discussion

What will be the output of the program?

#include
int main()
{
    unsigned int i = 65536; /* 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: D

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment