I am trying C++, There is a point about can not understanding about #define addition. The example code below.
#include <iostream>
using namespace std;
#define A 0
#define B A+1
#define C 3-B
int main(){
cout << A << endl;
cout << B << endl;
cout << C;
return 0;
}
The result gives A -> 0, B -> 1, C-> 4. How C equal 4 ?