mirror of
https://github.com/ada-dmitry/tmp_project.git
synced 2026-09-24 17:30:36 +00:00
18 lines
184 B
C
18 lines
184 B
C
#include <stdio.h>
|
|
|
|
void plus1(int *px)
|
|
{
|
|
*px += 1;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
static int x = 5;
|
|
static int *px = &x;
|
|
plus1(px);
|
|
printf('%d %d\n', x, x+1);
|
|
|
|
return 0;
|
|
|
|
|
|
} |