#include <stdio.h>
#include <stdlib.h>
int count = 0; //全局变量 - 有默认值
void changeNum()
{
count++;
}
int main()
{
changeNum();
changeNum();
printf("count = %d\n",count);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int count = 0; //全局变量 - 有默认值
void changeNum()
{
count++;
}
int main()
{
changeNum();
changeNum();
printf("count = %d\n",count);
return 0;
}