+ 1
Please explain What are the forms of ' + ' operators
like addition, encapsulation etc.
1 Odpowiedź
+ 3
u mean ++ ...?!
they are increment operators...
like if u have int i=2
i++ would make it 3
there are two types
pre increment and post increment
pre increment...
if a=10
b=++a
then it is pre increment..
it means increment is done first..
in this case first a becomes 11 then b is assigned value of a ie., b=11
post increment...
if a=10
b=a++
then b is assigned the value of a ...Nd then a is incremented...
so here b=10 and then a becomes 11
hope u understood... :)
anything else jus post ...