Elearning , Interview Questions And Answers

Google

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 c)2 d)undefined ans:2 15. #include<stdio.h> void main(int argc) { char a[]={'1','2','3',0,'1','2','3'}; printf(a); } a) compilation error, b) 123, c) 123 123, d) 1230123 ANS:b 16. #include<stdio.h> void func(int *x) { x=(int *) malloc(sizeof(int)); printf("in func: %p\n",x); } void main(int argc)


Hosted by www.Geocities.ws

1