Vidyalelo
Computer Science · Q103

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 103

Q103

If p and q are assigned the values 2 and 3 respectively then the statement p = q++

A.
gives an error message
B.
assigns a value 4 to p
C.
assigns a value 3 to p
Answer
D.
assigns a value 5 to p
E.
None of the above

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board