You are not logged in.

#1 2015-09-17 05:41:26

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

Garbage Values:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … uage-Basic

Directions:
Determine Output:

Question:
void main()
{
      int i=i++, j=j++, k=k++;
      printf("%d %d %d", i, j, k);
}

Option A):
0 0 0
Option B):
garbage values
Option C):
Error
Option D):
1 1 1

Correct Answer is Option B):
garbage values


Failure is the first step towards seccess.

2015-09-17 05:41:26

Advertisement
Ads By Google

Re: Garbage Values:



Board footer