micro use in printf
#define WHITE BLACK
printf("WHITE"); is there any to print this output as-- BLACK. this code i am using is in C. Need urgent. Thanks |
You will have to change the code some.
Code:
#define WHITE "BLACK" |
An alternative:
Code:
#include <stdio.h> Note that the compiler does do some serious logic checking, so the above is not nearly as inefficient as one might think. At least gcc-4.6.1 on x86-64, even with -O0, compiles the above C to exactly the same code as Code:
#include <stdio.h> |
All times are GMT -5. The time now is 03:23 PM. |