get nullptr'd lol
This commit is contained in:
9
Assignments/pointers/pointers1.c
Normal file
9
Assignments/pointers/pointers1.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int * dupParameter(int x) {
|
||||
int * p = malloc(1 * sizeof(int));
|
||||
if (p == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user