qfedu-c-level/day10/d5.c

16 lines
148 B
C
Raw Normal View History

#include <stdio.h>
void change(int *p)
{
*p += 10;
}
int main()
{
int x = 10;
change(&x);
printf("x = %d\n", x);
return 0;
}