The output of the following ‘C’ language code is: void main() { int x=1, i,…

Coal India Management Trainee CBT 2017

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("%0d,%0d",x,y);
}

  1. A.

    10,11

  2. B.

    1,1

  3. C.

    10,1

  4. D.

    1,10

Attempted by 843 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…