Description
Decrements the value of a variable by 1.
Syntax
i–;
//this means i = i-1
Example Code
int i = 2;
int x = i–; // x = 1 now.
Decrements the value of a variable by 1.
i–;
//this means i = i-1
int i = 2;
int x = i–; // x = 1 now.
Loading…