TGPSC HMWSSB Manager 2015 Paper 2 CSE · Question 107
Question 107 of the TSPSC Manager (Engineering), HMWSSB, 2015: Paper 2 (Computer Science & Information Technology) (1 November 2015). Try it first, then open the answer. The explanation is in the practice app with the All-in-One Pass.
Consider the following C program:
main() { int x=5; printf("%d,%d,%d\n",x,x<<2,x>>2); }What could be the output of the above program?
- 5,20,5
- 4,4,1
- 5,20,1
- 20,20,5
Show answer
Answer: (3) 5,20,1
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.