每调用一次函数 num的值+1
#include<stdio.h>
NUM(int*num)
{
(*num)++;
}
int main()
{
int num = 0;
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
NUM(&num);
printf("%d\n", num);
return 0;
}