1. Point out the compile time error in the program given below.

Screenshot 1

A. Error: invalid assignment for x
B. Error: suspicious pointer conversion
C. No error
D. None of above


Correct Answer: C. No error

2. Point out the error in the program

Screenshot 2

A. Error: Declaration syntax
B. Error: Expression syntax
C. Error: LValue required
D. Error: Rvalue required


Correct Answer: C. Error: LValue required

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 *

    18 − 1 =