Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnologicalJerry committed May 25, 2022
1 parent 721531a commit fcbba1c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dangling.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>
int *fun()
{
static int y=10;
return &y;
}
int main()
{
int *p=fun();
printf("%d", *p);
return 0;
}

0 comments on commit fcbba1c

Please sign in to comment.