How do they work?
Does -'0' always convert to int from char?
Can it convert from anything?
And same question about +'0', does it convert only from char to int, or from anything?
Thanks in advance :)
These are character (integer values) so the + or - '0' will subtract the ascii value from the left side of the expression. If you are talking about a zero and not a capital Oh, that has a decimal value of 48, so you are subtracting or adding 48. Here … Read More
Edited by rubberman
Edited by David W