Top

Discussion

What will be the output of the program, if a short int is 2 bytes wide?

#include
int main()
{
    short int i = 0;
    for(i<=5 && i>=-1; ++i; i>0)
        printf("%u,", i);
    return 0;
}

 

  • A.1 ... 65535
  • B.Expression syntax error
  • C.No output
  • D.0, 1, 2, 3, 4, 5

Answer: A

No answer description available for this question.
 

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

Post your comment