Hello,

I spotted one piece of code where you as usual must indicate indice of an array to retrieve data. However, I saw some strange syntax.

The array was like 10-15 elements long and contained strings.

The statement was like this:

cout << number[2 - '0' - 1] << endl;

I don't understand what - '0' does.

Could anyone explain this?