Pointers – Find Output of Program

16. What will be the output of the program?

Screenshot 1

A. peace
B. eace
C. ace
D. ce

Correct Answer: D. ce

17. What will be the output of the program?

Screenshot 2

A. llo
B. hello
C. ello
D. h

Correct Answer: B. hello

18. What will be the output of the program assuming that the array begins at location 1002?

Screenshot 3

A. 1002, 2004, 4008, 2
B. 2004, 4008, 8016, 1
C. 1002, 1002, 1002, 1
D. Error

Correct Answer: C. 1002, 1002, 1002, 1

19. What will be the output of the program ?

Screenshot 4

A. 5
B. 25
C. 125
D. Garbage value

Correct Answer: B. 25

20. What will be the output of the program?

Screenshot 6

A. Alice
B. ecilA
C. Alice lice ice
D. lice ice ce e

Correct Answer: D. lice ice ce e

Leave A Comment?

1 × two =