Single Choice Not Set

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

#include<stdio.h>

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

ID: #1170 Operators and Enums in C Language 1,580 views
Question Info
#1170Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A ffff
  • B 0000
  • C 00ff
  • D ddfd
Correct Answer

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.