Top

Discussion

For the following statement find the values generated for p and q?

int p = 0, q = 1;
p = q++;
p = ++q;
p = q--;
p = --q;

Value of p & q are

  • A.1 1
  • B.0 0
  • C.3 2
  • D.1 2

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment