increment operator : Operator « Language « C++
- C++
- Language
- Operator
increment operator
#include <iostream>
using namespace std;
int main(){
int count = 10;
cout << "count=" << count << endl;
cout << "count=" << ++count << endl;
cout << "count=" << count << endl;
cout << "count=" << count++ << endl;
cout << "count=" << count << endl;
return 0;
}
Related examples in the same category