S
September5th
Hi guys:
Why the following two both works???
#include <stdio.h>
#define A B
#define B 7
int main()
{
printf("%d", A); // print 7
return 0;
}
#include <stdio.h>
#define B 7
#define A B
int main()
{
printf("%d", A);
return 0;
}
How does MACRO is preprocessed???
Thanks a lot.
Why the following two both works???
#include <stdio.h>
#define A B
#define B 7
int main()
{
printf("%d", A); // print 7
return 0;
}
#include <stdio.h>
#define B 7
#define A B
int main()
{
printf("%d", A);
return 0;
}
How does MACRO is preprocessed???
Thanks a lot.