Skip to content

Commit 359b53f

Browse files
committed
update demo swap.c
1 parent d8d80ea commit 359b53f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

SVFIR/src/swap.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ void swap(char **p, char **q){
44
*q = t;
55
}
66
int main(){
7-
char a1, b1;
8-
char *a = &a1;
9-
char *b = &b1;
7+
char a1;
8+
char b1;
9+
char *a;
10+
char *b;
11+
a = &a1;
12+
b = &b1;
1013
swap(&a,&b);
11-
}
14+
}

0 commit comments

Comments
 (0)