1 | #include "stdafx.h" |
2 | #include <iostream> |
3 | using namespace std; |
4 | |
5 | void main() |
6 | {
|
7 | int d=4; |
8 | |
9 | cout << (d++) + (d++) +(d++) << '\n'; //ausgabe 12 |
10 | cout << d << '\n'; //ausgabe 7 |
11 | }
|
Wiso bekomme ich als Ausgabe für d 7 ? ++ ist doch eigentlich inkrementieren! Die Ausgabe 12 ist logisch da ich ja erst die Ausgabe bekome und dann inkrementiert wird aber wiso für d die Ausgabe 7 herauskommt ist mir ein Rätsel Gruß Anfänger