Interview Questions

What will be printed as the result of the operation below -...

C Interview Questions and Answers


(Continued from previous question...)

What will be printed as the result of the operation below -...

What will be printed as the result of the operation below:
main()
{
int x=5;
printf(“%d,%d,%d\n”,x,x<<2,>>2)
;
}



Answer: 5,20,1

(Continued on next question...)

Other Interview Questions