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