You are not logged in.

#1 2015-09-14 04:22:41

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

Output Program:

C Programming Quizzes C Language Operators And Expressions

Directions:
What will be the output of the following program?

Question:
void main()
{
      int a, b, c, d;
      a = 3;
      b = 5;
      c = a, b;
      d = (a, b);
      printf("c=%d d=%d", c, d);
}

Option A):
c=5 d=3
Option B):
c=3 d=3
Option C):
c=3 d=5
Option D):
c=5 d=5

Correct Answer is Option C):
c=3 d=5


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

2015-09-14 04:22:41

Advertisement
Ads By Google

Re: Output Program:



Board footer