feat: update structure
This commit is contained in:
9
cs2106/labs/lab1/part3/lab1p3b.c
Normal file
9
cs2106/labs/lab1/part3/lab1p3b.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int *p = (int *) malloc(sizeof(int));
|
||||
*p = 5;
|
||||
printf("p is %p and *p is %d\n", p, *p);
|
||||
free(p);
|
||||
}
|
||||
Reference in New Issue
Block a user