#if !defined(MESSAGE)
#define MESSAGE "hello"
#endif
int main(void)
{
printf("Here is the message: %s\n", MESSAGE);
getchar();
}
// 参数化的宏
#define MAX(x,y) x > y ? x : y
// #define MAX(x,y) ((x) > (y) ? (x) : (y))
int main(void)
{
printf("Max between 20 and 10 is %d\n", MAX(10, 20));
getchar();
return 0;
}
#ifndef HEADER_FILE
#define HEADER_FILE
the entire header file file
#endif
union#include <stdio.h>#include <string.h>union Data{ int i; float f; char str[20];}; int main( ){ union Data data; printf( "Memory size occupied by data ...