Hey guys , i have a small problem regarding calculation in c++. Here is an example below
int main()
{
int f = -32;
int d = 2;
int re = d - f;
int re2 = 2 - (-32);
int re3 = 2 - - 32
}
The problem i am having is that all 3 results show the answer is 34 , but if you use a normal calculator , the answer should be 30.
How can i solve this problem within c++? Hope for some input here. Thanks