How are macros in C different from pre-defined data types in terms of storage? -
how values associated , b? how values of , b assigned variables (when of different data types)
#include <stdio.h> #define 1 #define b 1 int main(void) { printf("%s", (a & b) ? "t":"f"); return 0; }
they not stored, replaced when appear in code preprocessor. code "literally" equivalent to
printf("%s", (1 & 1) ? "t" : "f");
Comments
Post a Comment