#include<stdio.h>#defineNAME"Claire"#defineADRESS"China"intmain(void){printf("My name is %s.\nI come from %s.\n", NAME, ADRESS);return0;}
2-3
#include<stdio.h>intmain(void){int age =22;int day =365* age;printf("年龄为%d,等价于%d天\n", age, day);return0;}
2-4
#include<stdio.h>//函数的声明voidjolly(void);voiddeny(void);//主函数intmain(void){jolly();jolly();jolly();deny();return0;}//函数的定义voidjolly(void){printf("For he's a jolly good fellow!\n");return;}voiddeny(void){printf("Which nobody can deny!\n");return;}