Constants and Variables with macro : const « Data Type « C Tutorial






#include <stdio.h>
 
#define SPEED 55
 
int main()
{
      printf("SPEED %i.\n",SPEED);
      printf("SPEED+15 %i.\n",SPEED+15);
      printf(" %i MPH sign?\n",SPEED);
      return(0);
}
SPEED 55.
      SPEED+15 70.
       55 MPH sign?








2.27.const
2.27.1.Constants
2.27.2.Define constant float value using const
2.27.3.Constants and Variables with macro