+ 6
What is the output of this code and why?
#include <iostream> using namespace std; int main() { int p=8; cout<<++p; cout<<p++; return 0; }
7 Answers
+ 13
Increment Operator
learn about prefix and postfix
https://www.sololearn.com/learn/CPlusPlus/1610/
+ 3
what is the output please?
+ 3
itâs clear now
thank you so much for all of you đ
+ 2
9
9
????
+ 1
ztujjar You do realize you can put the code in the code playground to check the output? Btw its 99
+ 1
both of cout will output 9.
but if you add third cout it's gonna be 10. (9910)