what is the value of a++when int a= - 1 in java programming explain
Answers
Answered by
0
Answer:
bro I only know HTML,If you wanna to know something from HTML then I will help you
Answered by
2
Answer:
a++(a=a+1) means first a = -1 is stored in the variable a then it is incremented.
ans : a=-1
Explanation:
so , according to that, a will a=-1 because it is first stored and that's why it doesn't get incremented on the FIRST TRIAL.!
extra stuff : [if you asked for ++a then a = a+1
a = -1+1
a = 0 ]
got the difference between ++a and a++.
hope it helps!
plz mark me as brainliest!
Similar questions
Hindi,
4 months ago
Social Sciences,
4 months ago
English,
8 months ago
Math,
11 months ago
English,
11 months ago