+ 2
Give the output
void main() { int x; x=15; cout<<x++<<" "<<++x<<" "<<x++; getch(); }
8 Answers
+ 10
try this in code playground:
#include <iostream>
using namespace std;
int main()
{
int x;
x=15;
cout<<x++<<" "<<++x<<" "<<x++;
return 0;
}
output is: 17 18 15
+ 1
17 18 15
+ 1
Output is 17 18 15
And please see this...
https://www.sololearn.com/discuss/288609/?ref=app
+ 1
17 17 15 is correct one
0
15 17 17
0
15 17 17
0
17,17,15 is correct
0
15 17 17