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

