Can I use TWICE_A as above? Will the preprocessor directive manage to resolve it? I cannot compile right now, otherwise I could have checked myself. Thanks!
#include <iostream>
#define A 5
#define TWICE_A (2*A)
int main()
{
int x = A;
int y = TWICE_A;
std::cout << "x = " << x << std::endl;
std::cout << "y = " << y << std::endl;
}