Comment on C++ should be called ++C

Blue_Morpho@lemmy.world ⁨2⁩ ⁨months⁩ ago

???

If c = 1, then c++ = 2

#include <iostream> using namespace std;

int main() { int i = 10; cout << i++ << endl; cout << i << endl; }

postfix ++ increments the variable.

source
Sort:hotnewtop