E D R , A S I H C RSS

새싹-날다람쥐 6월 10일


-> 홈


char *d;

d = (char*)malloc(sizeof(char)*100);

malloc(sizeof(char)*100);

(sizeof(char)*100)byte 환한.

d char*형태 Casting (char*)malloc(sizeof(char)*100); 형태 .
char d 100 .

char *d;

d = (char*)malloc(sizeof(char)*100);

d10 .



ex) 2 ?

char **arrray, *d;


d = (char*)malloc(sizeof(char) * 100);

arrray = (char**)malloc(sizeof(d) * 100);

char array 100100 형태 .




?


int temp;

char *d;

scanf("d .\n%d", temp);

d = (char*)malloc(sizeof(char) * temp);



형태 통해 .
C int dtemp 형태 .( C++ 형태 .)

: .



FREE

free(d); sizeof(char) * temp OS .

free . array free for free(arrayi) free(array);.

. OS .

트( ) .
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:41
Processing time 0.0150 sec