dimanche 4 novembre 2018

how does subtracting works in macro definition

why does C = 2 shouldn't it be 0 A+1 = 1 and 1-B =0 how does it work

#include <iostream>
#include <string>

using namespace std;

#define A 0
#define B A+1
#define C 1-B

int main()
{
 cout << C ;
}

Aucun commentaire:

Enregistrer un commentaire