Q. #include <stdio.h>
int main()
{
int x[5] = { 10, 20, 30 };
printf("%d", x[-1]);
return 0;
}
β
Correct Answer: (C)
Garbage value
Explanation: C language compiler does not check array with its bounds, when an index is out of the range the garbage value is printed.