Home / C Programming / Expressions :: Discussion

Discussion :: Expressions

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

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    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


Be The First To Comment