You are not logged in.

#1 2015-09-16 05:03:01

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

Garbage Value:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … nd-Strings

Directions:
What will be the output of the following code?

Question:
void main()
{
      int a[10];
      printf("%d %d", a[-1], a[12]);
}

Option A):
0 Garbage Value
Option B):
Garbage value 0
Option C):
0 0
Option D):
Garbage vlaue Garbage Value

Correct Answer is Option D):
Garbage vlaue Garbage Value


Failure is the first step towards seccess.

2015-09-16 05:03:01

Advertisement
Ads By Google

Re: Garbage Value:



Board footer