void count();
int main()
{
int i;
for (i = 1; i <= 3; i++)
{
count();
{
return 0;
}
void count()
{
static num = 0;
num++;
printf(" I have been called %d",num,"times/n");
}
输出结果为:
I have been called 1 times.
I have been called 2 times.
I have been called 3 times.