Pointers – True / False Questions

1. Are the expression *ptr++ and ++*ptr are same?

A. True
B. False

Correct Answer: B. False

2. Will the program compile?

Will the program compile

A. True
B. False

Correct Answer: A. True

3. The following program reports an error on compilation.

Screenshot 2

A. True
B. False

Correct Answer: B. False

4. Are the three declarations char **apple, char *apple[], and char apple[][] same?

A. True
B. False

Correct Answer: B. False

Leave A Comment?

one × four =