Computer Science, asked by aditigurao2000pbt4tf, 1 year ago

Plz solveJava expression If a=23 then write the value of :
A ) a ++; B) ++a; C) (a++)++; D) a*=2;
E) a - =20; F) a%4; G) (++a - 20)-- ;
H) (++a)/ (a++)

Answers

Answered by nitish8089
0
A) a=a+1 , a=23+1=24 , a=24(assign after evaluation)

B) a=a+1 , a=23+1=24 , a=24(assign before evaluation)

C)error (contant value can't be incremented)

D)a=a*2, a=23*2=46, a=46

E)a=a-20, a=23-20=3, a=3

F)a%4=23%4=3

G)constant value can't be decremented.

H)(++a)/(a++)=24/24=1.

aditigurao2000pbt4tf: Is it correct or not
nitish8089: just read about opreator got yourself...
Similar questions