You are not logged in.

#1 2015-09-14 05:48:26

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

C Language Operators And Expressions Output:

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

Directions:
Find the output of the following program.

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

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

Correct Answer is Option C):
12


Failure is the first step towards seccess.

2015-09-14 05:48:26

Advertisement
Ads By Google

Re: C Language Operators And Expressions Output:



Board footer