Skip to content

Commit af751f2

Browse files
committed
rephrase p=&a to p=malloc in Lab-2/test2()
1 parent 2d0788a commit af751f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lab-Exercise-2/Z3Examples.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ int main() {
5353
int* p;
5454
int q;
5555
int b;
56-
int a;
57-
p = &a;
56+
p = malloc;
5857
*p = 0;
5958
q = *p;
6059
*p = 3;

0 commit comments

Comments
 (0)