". VdoTips: C FUNDAMENTAL MCQ 9

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 9

Q.26 What is the output of the following program segment?
main() { long i = 65536; printf(“%d\n”, i); }
(A) 0
(B) 65536
(C) -1
(D) 65


Q.27 What is the output of the following program segment?
main() { int i = 1; do { printf(“%d..”, i); } while(i--); }
(A)0..1..
(B) 1..0..
(C) 0
(D) -1


Q.28 What is the output of the following program segment? main() { int i = ++2; printf(“%d\n”, i); }
(A) 3
(B) 2
(C) 0
(D) -1


Q.29 The name of all functions end with a

(A) pair of parenthesis
(B) semicolon
(C) braces
(D) colon