Use #define to define constant : define « Preprocessor « C Tutorial






#include <stdio.h>

#define TRUE           1
#define FALSE          0
#define BS             '\b'
#define TAB            '\011'

main(){

   printf("%d",TRUE);
   printf("%d",FALSE);
   printf("%c",BS);
   printf("%d",TAB);
}
19








12.2.define
12.2.1.Use preprocessor to define integer and string
12.2.2.Use #define to define constant