You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Basic void main:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … uage-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


Failure is the first step towards seccess.

2015-09-17 04:28:12

Advertisement
Ads By Google

Re: C Language Basic void main:



Board footer