#
include <stdio.h>
int
one_d[]={1,2,3};
main()
{
int *ptr;
ptr=one_d;
ptr+=3;
printf("%d",*ptr);
}
Answer:
garbage
value
Explanation:
ptr
pointer is pointing to out of the array range of one_d.
Go to: Java Aptitude
No comments:
Post a Comment