Last Updated :
28 Feb, 2019
What will be the output of the below program?
#include <stdio.h>
int main()
{
int arr[3];
printf(\"%d %d %d %d %d\", arr[0], arr[1], arr[2], arr[3], arr[4]);
return 0;
}
(A) 0 0 0 0
(B) GarbageValue GarbageValue GarbageValue
(C) GarbageValue GarbageValue GarbageValue GarbageValue
(D) Error
Answer: (C)
Explanation:
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...