MCQ Single Best Answer Not Set

QWhat will be printed after execution of the following code?

void main()
{
      int arr[10] = {1,2,3,4,5};
      printf("%d", arr[5]);
}

ID: #1421 Array in C Language 2,081 views
Question Info
#1421Q ID
Not SetDifficulty
Array in C LanguageTopic

Choose the Best Option

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

  • A Garbage Value
  • B 5
  • C 6
Correct Answer: Option D

Explanation

Option D

Share This Question

Challenge a friend or share with your study group.