Elearning , Interview Questions And Answers

Google

void main(){ { # define x 10 } printf("%d \n",++x); } a)11 b)10 c)compile error ans:c d)runtime error 5. #include<stdio.h> void main() { int k=2,j=3,p=0; p=(k,j,k); printf("%d\n",p); } a)2 b)error c)0 d)3 ans:a 6. How to typedef a function pointer which takes int as a parameter and return an int a)Is not possible b)typedef int *funcptr int; c)typedef int * funcptr( int); d)typedef int (*funcptr)(int); ans:d 7. #include<stdio.h> void main() { int k=10; k<<=1; printf("%d\n",k); } a)10 b)0


Hosted by www.Geocities.ws

1