70,024
社区成员




#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void GetMemory(char **p,int num)
{
*p = malloc(num);
}
int main()
{
char *str=NULL;
str=(char *)malloc(100);
if(str!=NULL) {
printf("%p\n", str);
}
free(str);
if(str!=NULL) {
printf("%p\n", str);
}
return 0;
}