0
What is difference between ++x and x++ ?
8 Antworten
+ 2
if x=5 and x++ still 5, what is the reason using x++
+ 1
++x is the value of x is first incremented and then its is assigned to the variable and x++ means first the value is assigned to the variable and then its incremented
0
++x is pre increment and x++is post increment order
0
++x means increment the value of x to be used in that statement, while x++ means use the original value of x in that statement, and increment the value of x afterwards.
0
in ++x a value of x is increas and store in x.
in x++ a value of x is only increase but not store on that line of programme after use x in on other line in programme that's increased value is store
0
say x=5;
post increment: x++; here value of x is still 5.
pre increment: ++x; here value of x is 6.
0
in that statement, x = to what it always was. After that statement, x = ++x. in other words, it uses the original value and then increases it after it has been used in that statement.
0
no difference