2007-09-05

Never have it again!!!


int** ptr = malloc( sizeof(int) * SIZE );
char** ptr = malloc( sizeof(char) * SIZE );

WRONG


int** ptr = malloc( sizeof(int**) * SIZE );
char** ptr = malloc( sizeof(char**) * SIZE );

RIGHT

沒有留言: