Elearning , Interview Questions And Answers

Google

3. enum x {a=1,b,c,d,f=60,y} printf("%d",y); a)5 b)61 c)6 d)60 ans:b 4. #include<stdio.h> 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);