Question 109Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

The output of the following 'C' language code is: void main(){

The output of the following 'C' language code is: void main(){ int x=1, i, y=2; for (i=0;i<10;i++) { x << 1; y=x+i; } printf("%d,%d",x,y); }
  1. A10,11
  2. B1,1
  3. C10,1
  4. D1,10
Show answerHide answer

Correct answer: (D) 1,10

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 109 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.