第二章完结
This commit is contained in:
12
Chapter1/基本概念-编程注意问题/hello.c
Normal file
12
Chapter1/基本概念-编程注意问题/hello.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int *p = NULL;
|
||||
int i;
|
||||
p = (int *)malloc(sizeof(int));
|
||||
if (p == NULL)
|
||||
return -1;
|
||||
printf("Hello world!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user