Computer Science, asked by bhartipunam9771, 8 months ago

what is the value of a++when int a= - 1 in java programming explain​

Answers

Answered by ishantsingh57
0

Answer:

bro I only know HTML,If you wanna to know something from HTML then I will help you

Answered by sunitazirange
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