Elearning , Interview Questions And Answers

Google

d)runtime error ans:b 12 #include<stdio.h> void main() { int *j=(int *)0x1000; printf("%p",j); } a)prints-1000 b)runtime error c)compilation error d)none of the above ans:d 13 #include<stdio.h> void main() { int a[2][2]={{2},{3}}; printf("%d",a[0][0]); printf("%d",a[0][1]); printf("%d",a[1][0]); printf("%d",a[1][1]); } a) 2300 b)2000 c)0030 d)2030 ans:d 14) #include<stdio.h> void main(int x) { printf("%d",x) ; } if the name of the executable file is abc and the command line is given as abc xyz what is the output a)compilation error b)1


Hosted by www.Geocities.ws

1