c language learning ---- trap summary

1 macro definition

  Only the most basic macro replacement, rather than operations.

  #define ONE 1

  #define TWO=ONE+ONE

  int a = 10,b=20,c;

  c=ONE +TWO *20 + a;

  

  c value would it be? ? ? Be sure to remember to replace rather than operations. That is, the above is equivalent to c c = ONE + ONE + ONE * 20 + a;    

 

2  

 

  

Guess you like

Origin www.cnblogs.com/Lonelychampion/p/12356906.html