cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Increment
Increment
Aug 30, 2014 at 2:43pm UTC
missjune
(7)
Hi,
Can somebody explain to me, how does the below code works? The answer is 8, 10 and 9 respectively but I don't know how to get to the answer.
int k = 8;
cout << k++ << endl;
cout << k + 1 << endl;
cout << k << endl;
Last edited on
Aug 30, 2014 at 2:44pm UTC
Aug 30, 2014 at 3:04pm UTC
keskiverto
(10402)
http://en.cppreference.com/w/c/language/operator_incdec
Topic archived. No new replies allowed.