#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void Func(int* x)
	{
		*x += 1;
	}
int main()
{
	int x = 0;
	Func(&x);
	Func(&x);
	Func(&x);
	printf("%d\n", x);
	system("pause");
	return 0;
}

每调用一次函数就增加1

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-09-15
  • 2021-12-31
  • 2021-06-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案