+ 12
What's the output of this program?
#include<iostream> #include<stdio.h> using namespace std; int main() { int num1=5; int num2=3; int num3=2; num1=num2++; num2=--num3; cout<<num1<<num2<<num3; return 0; }
8 Réponses
+ 13
Error, because <iostream.h> should be <iostream>.
If that is fixed, the output would be
311
You may refer to this thread if you need more information on prefix and postfix operators:
https://www.sololearn.com/Discuss/407846/?ref=app
+ 12
Ya I've changed it
+ 11
tqsm
+ 4
Output wil be : 311
+ 2
311
+ 2
output will be 311
0
سلامو
0
تشگر خوبم تو خوبی