Computer Science, asked by surajStga, 4 months ago

int x=5,y=4,z;
Z = x*y++ + ++x/y; (please explain in detail​

Answers

Answered by BrainlyProgrammer
7

Answer:

Z=x*y++ + ++x/y;

Now focus on increment operator..

y++ means first it will calculate then the value will increase

++x means first it will increase and then calculate

Z=5*4+6/4; //x value increased

Z=20+1; //now y's value increased

Z=21

IF U GET THE CONCEPT....MARK ME BRAINLIEST

Answered by anindyaadhikari13
4

Answer:-

Given,

x=5, y=4

z=x*y++ + ++x/y

=5*4+6/5

=20+1

=21

Hence, the value of z is 21.

Similar questions