Quiz question plz answer what will be its answer

Q9. bitmask 1<<32 32 bit
long long x = (1 << 32) ;
What will be the value of x ?

232

Compilation Error

231

None of the above

Hi @goyal431

answer will be compilation error as only 32 bit system is given, all 32 bits cannot be shifted as it is equal to total number of bits in long long. Hence it will give compilation error.

Hope it Helps.