![]() |
Using malloc and getting memory address
Hello-
I am trying to use malloc. I understand that when calling malloc, it returns a pointer to the memory address of the allocated memory. How would I go about getting the ACTUAL memory address that the pointer is pointing to in the format of 0xc0000000..? |
printf ("malloc returned %p\n", p);
|
Thank you!!!
|
| All times are GMT -5. The time now is 05:11 PM. |