Elearning , Interview Questions And Answers

Google

union y{ struct x a; double d; }; printf("%d",sizeof(union y)); a)8 ans:8 b)5 c)4 d)1 2. struct x{ char c1; char c2; int i; short int j; }; struct y{ short int j; char c1; char c2; int i; }; printf("%d %d",size of (struct x),size of (struct y)); a)12 12 b)8 8 ans:a c)12 8 d)8 12 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>


Hosted by www.Geocities.ws

1