What is the output of the following C code snippet? int arr[] = {1, 2, 3, 4,…
PYQ CoCubes 2024
What is the output of the following C code snippet?
int arr[] = {1, 2, 3, 4, 5};
printf("%d", arr[5]);- A.
1
- B.
5
- C.
Undefined behavior
- D.
0
Attempted by 1508 students.
Sign up free to check your answer
Sign up freeLoading lesson…

