int n3 = ++ ++n1;
#include <iostream> int main(){ int n1 = 1; int n2 = ++n1; int n3 = ++ ++ ++ ++n1; int n4 = n1++;// int n5 = n1++ ++; // error// int n6 = n1 + ++n1; // undefined behavior std::cout << "n1 = " << n1 << '\n' << "n2 = " << n2 << '\n' << "n3 = " << n3 << '\n' << "n4 = " << n4 << '\n';}
func x y
C++ (Qt)int i=1;int a = ++ ++i;
Result a: 3
C++ (Qt)int a = ++++i;
C++ (Qt)int a = ++(++i);
C++ (Qt)int a = ++i++;
C++ (Qt)int a = ++(i++);
error: lvalue required as increment operand
C++ (Qt)int &operator(int &val); // prefixint operator(int &val, int); // postfix