You are not logged in.

#1 2015-09-17 04:28:09

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

C Language Basic void main:

C Programming Quizzes C Language Basic

Directions:
Determine Output:

Question:
void main()
{
      int i = abc(10);
      printf("%d", --i);
}
int abc(int i)
{
      return(i++);
}

Option A):
10
Option B):
9
Option C):
12
Option D):
11

Correct Answer is Option B):
9


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

2015-09-17 04:28:09

Advertisement
Ads By Google

Re: C Language Basic void main:



\n

Board footer