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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -