Elearning , Interview Questions And Answers

Google

CARITOR ­ ALL PAPERS 2005 C QUESTIONS: 1. Struct x { int i; char c; } 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