This question already has an answer here:
- Undefined behavior and sequence points 4 answers
What will be the output of following C++ code?
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int a =5;
cout<<a<<++a<<a<<a++<<--a<<a;
return 0;
}
Aucun commentaire:
Enregistrer un commentaire