Whats the difference between ++ and +=
When adding to a variable, what is the difference between:
Variable[id]++ and Variable[id]+= I believe ++ adds 1 automatically each time, but += allows you to define how much to add each time, correct? |
Re: Whats the difference between ++ and +=
Yes.
|
Re: Whats the difference between ++ and +=
|
Re: Whats the difference between ++ and +=
|
Re: Whats the difference between ++ and +=
Equivalents:
Variable[id] = Variable[id] + 1 and Variable[id] = Variable[id] + x |
| All times are GMT -4. The time now is 21:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.