You are not logged in.

#1 2015-09-14 06:06:28

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

C Language Function Determine Output:

C Programming Quizzes C Language Function

Directions:
Determine output:

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

int abc(int i)
{
      return(i++);
}

Option A):
6
Option B):
7
Option C):
9
Option D):
8

Correct Answer is Option C):
9


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

2015-09-14 06:06:28

Advertisement
Ads By Google

Re: C Language Function Determine Output:



Board footer