Pointers – Find Output of Program

6. What will be the output of the program ?

Screenshot 1

A. Error: cannot convert from void** to int**
B. Garbage value
C. 0
D. No output

Correct Answer: C. 0
Advertisement

7. What will be the output of the program?

Screenshot 2

A. Error
B. No output
C. K
D. %s

Correct Answer: C. K
Advertisement

8. What will be the output of the program?

Screenshot 3

A. 10
B. 20
C. Error: Non portable pointer conversion
D. Error: cannot use static for function parameters

Correct Answer: D. Error: cannot use static for function parameters
Advertisement

9. What will be the output of the program if the size of pointer is 4-bytes?

Screenshot 4

A. 2, 1
B. 2, 2
C. 4, 1
D. 4, 2

Correct Answer: C. 4, 1
Advertisement

10. What will be the output of the program?

Screenshot 5

A. JCK
B. J65K
C. JAK
D. JACK

Correct Answer: D. JACK
Advertisement

Leave A Comment?