MCQ Single Best Answer Not Set

QWhat will be the output of the following code?

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

ID: #1423 Array in C Language 1,213 views
Question Info
#1423Q ID
Not SetDifficulty
Array in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 0 0
  • B Garbage value 0
  • C 0 Garbage Value
  • D Garbage vlaue Garbage Value
Correct Answer: Option D

Explanation

Garbage vlaue Garbage Value

Share This Question

Challenge a friend or share with your study group.