Placement Papers: Caritor Services India Private Limited Placement Paper TechnicalC

Download PDF of This Page (Size: 104K)

Examrace Placement Series prepares you for the toughest placement exams to top companies.

C QUESTIONS:

  1. struct x { int I; char s; } union { struct x, y; double j }z; main () { printf ( “%d” sizeof (union z) ); 2. Struct x { int I; short int j; char a; char b; } struct y }

  2. main () { printf ( “%d%d” sizeof (structx), sizeof (structy) ); } ans 12 12 12 8 12 8 8 12

  3. main () { int I = 0; } declaration definition

  4. main () { int I = 1234.567 printf ( “%d” I) } ans 1234 1235 1234.567 error

  5. main () { int * + j int * I = 6; if (NULL! = &&NULL! = * I) printf ( “” ); }

  6. main () { a[2][2] = { { 2}, { 3}} printf ( “%d” a[0][0]); printf ( “%d” a[0][1]); printf ( “%d” a[1][0]) printf ( “%d” a[1][1]); }

ans

2000

2300

2030

2003