What is the value of x, if int y = 9?
double x = ++y - y++ *(++y/2);
Answers
Answered by
4
Answer:-
Given,
y=9
x=++y - y++*(++y/2)
>> x=10-10*(12/2)
>> x=10-10*6
>> x=10-60
>> x=-50.0
Hence, the value of x after execution is -50.0
Similar questions