Mega Code Archive
Categories
/
C
/
Macro Preprocessor
Define marco based calculation
#include
#define SMALL 1 #define MEDIUM SMALL+1 #define LARGE MEDIUM+1 int main(void) { printf("%d %d %d", SMALL, MEDIUM, LARGE); return 0; }