By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

how to use increment and decrement operators in c++ using single variable

P: 2
how to increment -1 in x variable
Nov 12 '16 #1
Share this Question
Share on Google+
2 Replies

P: 2
x + = -1
this increase x by -1
Nov 12 '16 #2

Expert Mod 5K+
P: 9,197
You can also use --x
Nov 12 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.