+ 2

what is the meaning of x++ ?

15th Oct 2016, 9:51 AM
amin trance
amin trance - avatar
11 odpowiedzi
+ 4
x++is the same as x=x+1
15th Oct 2016, 9:55 AM
Rayan Aridi
Rayan Aridi - avatar
+ 2
It increments the value of x by 1. There is also ++x, that first increments x then assigns it to x, while x++ does it the other way.
15th Oct 2016, 7:38 PM
smileyface
smileyface - avatar
+ 2
It is actually the short form of increment by one ...!!!
16th Oct 2016, 9:14 AM
Azeem Sarwar
Azeem Sarwar - avatar
+ 2
x++ increases the value of x by 1 after executing the current line or expression
2nd Nov 2016, 3:36 AM
Vijay Anand
Vijay Anand - avatar
+ 1
When we need to increment a number to be added by one we use this statement x = x + 1 , we can also write it as x += 1 .. this increment statement is mostly used in c++ such as a counter etc therefore only when we are to use increment by one when can write it as x++ ...
2nd Nov 2016, 2:57 PM
Azeem Sarwar
Azeem Sarwar - avatar
+ 1
post increment i.e. first it uses the input value then increases the value by 1...!!!
27th Feb 2017, 2:36 AM
Ritik Tiwari
Ritik Tiwari - avatar
0
postfix first it use value the increase the value
31st Oct 2016, 11:36 AM
tabish
tabish - avatar
0
increment of one
2nd Nov 2016, 2:43 PM
Micah Lambert
Micah Lambert - avatar
0
use value then increments
2nd Nov 2016, 3:51 PM
tabish
tabish - avatar
0
increment
18th Nov 2016, 2:59 AM
Qaiser Farooq
Qaiser Farooq - avatar
- 5
lolzz
16th Oct 2016, 1:05 AM
Nanthaphon Sypaserd
Nanthaphon Sypaserd - avatar