Sail E0 Webinar
Question
What will be the output of the following code?
void main()
{
int a[10];
printf("%d %d", a[-1], a[12]);
}
Options:
A .  0 0
B .  Garbage value 0
C .  0 Garbage Value
D .  Garbage vlaue Garbage Value
E .  Code will not compile
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers