#include <stdio.h>
#define X 2
#define N_1_T 50
#define N_2_T 49
#define PRINT() printf("id: %d", N_ ## X ## _T)
int main(void)
{
    PRINT();
    return 0;
}
I want N_ ## X ## _T to be expanded to N_2_T when I have the Macro #define X 2. If I change the Macro definition of X to be #define X 1, N_ ## X ## _T should be expanded to N_1_T.
But I do not know how to do this. I have searched and read many pages, but I just do not get what I should do to achieve the desired result.
Please help, thank you.
 
    