Pointers – Point Out Errors

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

Leave A Comment?

3 × five =