+ 2
What is output?
int main() { int a,b; a=10; b=15; int c; c=10>>2; cout<<c; }
2 Answers
+ 3
it's 2.
If you convert 10 from decimal system to binary you will get 1010. Shifting two positions to the right you will get 10, that is 2 in decimal system.
+ 2
thanks...kleber Leal