Discussion Forum : Expressions
Question -

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

Options:
A .  Yes
B .  No
Answer: Option B

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

different objects p and *p



Was this answer helpful ?
Next Question
Submit Your Solution hear:

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