What is the output of the below code? #include <stdio.h> int main() { int arr[5]={10,20,30,40,50}; printf(“%d”, arr[5]); return 0; } A. 50 B. 10 C. Garbage value D. None of the above Answer Workspace Report Discuss Answer with explanation Answer: Option C Explanation The correct answer is Garbage value the indexing in an array starts from 0, so it starts from arr[0] to arr[4]. If we try to access arr[5] then the garbage value will be printed. Workspace
Discuss about the question