This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem about malloc()

Hello,
When I use malloc() like

 p = malloc(LIST_INIT_SIZE*sizeof(unsigned int))


It will allways get 0x000000,and if it is used like that

 i = LIST_INIT_SIZE*sizeof(unsigned int);
 p = malloc(i);


this would get an address.
If someone knows how ,please tell me,thanks

0