Placement Papers: Caritor Services India Private Limited Placement Paper TechnicalC
Get unlimited access to the best preparation resource for CTET/Paper-2 : get questions, notes, tests, video lectures and more- for all subjects of CTET/Paper-2.
C QUESTIONS:
- 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}
- main () {printf ( ā% d % dā sizeof (structx) , sizeof (structy) ) ;} ans 12 12 12 8 12 8 8 12
- main () {int I = 0;} declaration definition
- main () {int I = 1234.567 printf ( ā% dā I) } ans 1234 1235 1234.567 error
- main () {int ā¹ + j int ā¹ I = 6; if (NULL! = &&NULL! = ā¹ I) printf ( āā ) ;}
- 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