?
What will be the output of the following code?
What will be the output of the following code?
void main()
{
int a[10];
printf("%d %d", a[-1], a[12]);
}
void main()
{
int a[10];
printf("%d %d", a[-1], a[12]);
}
Answer & Solution
Correct Answer:
Option
D
In c compiler does not check array with its bounds, value at the computed location is displayed.
Join the Discussion
Login to post a comment or share your explanation.
Login