You are not logged in.

#1 2015-09-15 05:44:17

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Control Structures Output:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … Structures

Directions:
Find the output of the following program.

Question:
#include<stdio.h>
void main()
{
   int y=10;
   if(y++>9 && y++!=10 && y++>11)
      printf("%d", y);
   else
      printf("%d", y);
}

Option A):
14
Option B):
12
Option C):
13
Option D):
11

Correct Answer is Option C):
13


Failure is the first step towards seccess.

2015-09-15 05:44:17

Advertisement
Ads By Google

Re: C Language Control Structures Output:



Board footer