+ 4
prefix will increment a variable before an operation, such as assigning. Postfix will increment the variable after the operation. int i = 0; int j = ++i; // j becomes 1 int y = i++ // y becomes 0 because the increment is after the operation
19th Dec 2016, 4:35 AM
scott johnson
scott johnson - avatar