". VdoTips: C FUNDAMENTAL MCQ 7

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 7

Q.16 main() { long i = 30000; printf(“%d”, i); } the output is
(A) 3000
(B) 30000
(C) 0
(D) -1


Q.17 The directive that can be used to test whether an expression evaluates to a nonzero value or not is (A) #if
(B) #elif
(C) #endif
(D) #exit


Q.18 main() { printf(“%p\n”, main()); }
(A) Prints the address of main function.
(B) Prints 0.
(C) Is an error.
(D) Is an infinite loop.


Q.19 The << operator is used for
(A) Right shifting
(B) Left shifting
(C) Bitwise shifting
(D) Bitwise complement


Q.20 The C language includes the header file standard input & output in (A) stdlib.h library
(B) stdio.h library
(C) conio.h library
(D) #include library