6. Point out the error in the program.

Screenshot 1

A. Error: RValue required
B. Error: Lvalue required
C. Error: cannot convert from ‘const int *‘ to ‘int *const
D. No error


Correct Answer: D. No error

7. Point out the error in the program.

Screenshot 2

A. Error: cannot convert ptr const value
B. Error: unknown pointer conversion
C. No error
D. None of above


Correct Answer: A. Error: cannot convert ptr const value

8. Point out the error in the program.

Screenshot 3

A. Error: RValue required
B. Error: Lvalue required
C. Error: fun() returns a pointer const character which cannot be modified
D. No error


Correct Answer: C. Error: fun() returns a pointer const character which cannot be modified

 

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 2 =