Expressions

Q.

Will the expression *p = p be disallowed by the compiler?

A. Yes
B. No

Answer : Option B

Explanation :

Because, here even though the value of p is accessed twice it is used to modify two 

different objects p and *p