Top

Discussion

If an unsigned int is 2 bytes wide then, What will be the output of the program ?

#include

int main()
{
    unsigned int a=0xffff;
    ~a;
    printf("%x\n", a);
    return 0;
}

 

  • A.ffff
  • B.0000
  • C.00ff
  • D.ddfd

Answer: A

No answer description available for this question.
 

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

Post your comment