#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,const char * argv[])
{
char *a;
a=malloc(20);
if(NULL==a){
printf("malloc memory error");
return -1;
}
strcpy(a,"hello world");
printf("%s\n",a);
a++;
if(a!=NULL){
free(a);
a=NULL;
}
return 0;
}