Pointers – Find Output of Program

1. What will be the output of the program?

Screenshot 1

A. ink
B. ack
C. ite
D. let

Correct Answer: A. ink
Advertisement

2. What will be the output of the program?

Screenshot 2

A. 30
B. 27
C. 9
D. 3

Correct Answer: A. 30
Advertisement

3. What will be the output of the program ?

Screenshot 3

A. x=31, y=502, z=502
B. x=31, y=500, z=500
C. x=31, y=498, z=498
D. x=31, y=504, z=504

Correct Answer: D. x=31, y=504, z=504
Advertisement

4. What will be the output of the program?

Screenshot 4

A. Mello
B. Hello
C. HMello
D. MHello

Correct Answer: A. Mello
Advertisement

5. What will be the output of the program If the integer is 4bytes long?

Screenshot 5

A. 8, 8, 8
B. 4000, 4002, 4004
C. 4000, 4004, 4008
D. 4000, 4008, 4016

Correct Answer: A. 8, 8, 8
Advertisement

Leave A Comment?