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
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.
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
Similar questions
Math,
7 months ago
English,
7 months ago
Math,
1 year ago
Social Sciences,
1 year ago
CBSE BOARD X,
1 year ago