Bitwise Operators

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

What will be the answer ?

@shahpankti931
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. if yes dont forget to hit like and mark resolved :smiley:

note if you type cast 1 to LL it will work
1LL<<32 will work