需求:每调用一次函数,num增加一次。
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> void ayue(int* p) { (*p)++; } int main() { int num = 0; ayue(&num); printf("num = %d\n", num); ayue(&num); printf("num = %d", num); }
标签:20,int,代码,练习,ayue,num,printf From: https://www.cnblogs.com/ayue6/p/17743515.html