#include #include #include int debug=1; main() { int i,j; char* cp; cp = malloc(20); strcpy(cp,"hello world"); printf("%s\n", cp); // notice: no free.... // you need a lot of memory ar you get a segmentation fault for(i=0;i<6;i++){ printf("%d...\n",i); cp = malloc(1000000000); for(j=0;j<1000000000;j++) cp[j] = '0' + j; } return 0; }