mirror of
https://github.com/ada-dmitry/tmp_project.git
synced 2026-09-24 09:20:34 +00:00
restore 2
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user