You are not logged in.

#1 2015-09-14 05:45:49

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Operators And Expressions Program:

C Programming Quizzes C Language Operators And Expressions

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):
12
Option B):
11
Option C):
15
Option D):
13

Correct Answer is Option D):
13


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-14 05:45:49

Advertisement
Ads By Google

Re: C Language Operators And Expressions Program:



Board footer