/* * var8.c - Add '#define' to top for program for preprocessor, * YEAR is referred to as a macro in C. * This is not a variable declaration, does not allocate memory. * preprocessor instead, looks for all occurences of YEAR, and replaces with the value 1871. */ #include #define YEAR 1871 int main(void) { char name[]="Orin Braucher"; int month = 6; int day = 23; float birthmass = 3.9; float birthweight = 8.6; char middleinit = 'E'; printf("He was born on %d/%d/%d.\n", month, day, YEAR); printf("At birth he weighted %.2f kg or %.2f pounds.\n", birthmass, birthweight); printf("He was given %c for a midle initial.\n", middleinit); printf("%s is his name.\n", name); return 0; }