Computer Science, asked by geetasahu828, 6 months ago

Q3.
(a).
What will be the value of x?
int x=5,y=2;
x+3x+++ ++y*x- - /y++ +y;​

Answers

Answered by shinchen08
28

Answer:

The prefix and postfix increment both increase the value of a number by 1. The only difference between the two is their return value. The former increments ( ++ ) first, then returns the value of x , thus ++x . The latter returns the value of x first, then increments ( ++ ), thus x++

Similar questions