Elearning , Interview Questions And Answers

Google

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 10. #include<stdio.h> void main() { unsigned int i= -1; printf("%d\n",i); printf("%u\n",i*-1); } a)runtime error b)compilation error c)prints -1 to 1 d)prints 1 and 1 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 c)20 d)compilation error ans:c


Hosted by www.Geocities.ws

1