You are not logged in.

#1 2015-09-17 05:46:40

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

C Language Basic Quiz:

C Programming Quizzes C Language Basic

Directions:
Determine Output:

Question:
#define prod(a,b)  a*b
void main()
{
      int x=3, y=4;
      printf("%d", prod(x+2, y-1));
}

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

Correct Answer is Option B):
10


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

2015-09-17 05:46:40

Advertisement
Ads By Google

Re: C Language Basic Quiz:



Board footer