You are not logged in.

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

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

Garbage Value:

C Programming Quizzes C Language Arrays And 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


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

2015-09-16 05:03:01

Advertisement
Ads By Google

Re: Garbage Value:



Board footer