constant

C language self-learning definition constant

1 #include <stdio.h>
 2  #define   MONEY 100 // Define constants (define) Use uppercase (MONEY) for identifiers; no symbols are required to directly fill in the value, and no line breaks are required 
3  int main()
 4  {
 5      printf( " Xiao Ming can get %d pocket money every day\n " ,MONEY);
 6      return  0 ;
 7 }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325062643&siteId=291194637