What is the effect of the following code?
main()
{
int a[4]={1,5};
printf("%d",a[3]);
}
Answer & ExplanationOption: [A]
Given that int a[4]={1,5}
So a[2], a[3] etc. are 0
main()
{
int a[4]={1,5};
printf("%d",a[3]);
}
Answer & ExplanationOption: [A]
Given that int a[4]={1,5}
So a[2], a[3] etc. are 0