You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
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


Failure is the first step towards seccess.

2015-09-14 04:22:44

Advertisement
Ads By Google

Re: Output Program:



Board footer