Answers for "why not bitwise operations give negative numbers?"

0

why not bitwise operations give negative numbers?

int x = 4;
int y;
int z;
y = ~(x<<1);
z =~(0x01<<1);
cout<<"y = "<<y<<endl;
cout<<"z = "<<z<<endl;
Posted by: Guest on December-14-2020

Code answers related to "why not bitwise operations give negative numbers?"

Browse Popular Code Answers by Language