Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Dynamic Mem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 20 Topic 26195 of 26960
Post > Topic >>

Re: Dynamic Memory allocation

by "Malcolm McLean" <regniztar@[EMAIL PROTECTED] > May 13, 2008 at 11:22 AM

"smarty" <csmgsarma@[EMAIL PROTECTED]
> wrote in message
> how can I find the memory allocated dynamically? is there any
> possibility of finding it?
>
unsigned char *ptr;

ptr = malloc(100); /* grab 100 bytes of memory */

printf("%p\n", ptr);  /* print out the location of the memory in 
human-readable format */

Note that this information is almost always useless to you. As long as you

know that ptr points to 100 bytes, there is no reason to know where in 
physical memory it is stored.

-- 
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
 




 20 Posts in Topic:
Dynamic Memory allocation
smarty <csmgsarma@[EMA  2008-05-13 03:08:56 
Re: Dynamic Memory allocation
"Jim Langston"   2008-05-13 03:18:17 
Re: Dynamic Memory allocation
"Malcolm McLean"  2008-05-13 11:22:41 
Re: Dynamic Memory allocation
jt@[EMAIL PROTECTED] (Je  2008-05-13 10:27:56 
Re: Dynamic Memory allocation
Spiros Bousbouras <spi  2008-05-13 03:51:33 
Re: Dynamic Memory allocation
Keith Thompson <kst-u@  2008-05-13 08:59:29 
Re: Dynamic Memory allocation
"cr88192" <c  2008-05-14 09:18:56 
Re: Dynamic Memory allocation
Nick Keighley <nick_ke  2008-05-14 00:55:26 
Re: Dynamic Memory allocation
smarty <csmgsarma@[EMA  2008-05-14 02:23:21 
Re: Dynamic Memory allocation
Ian Collins <ian-news@  2008-05-14 21:33:41 
Re: Dynamic Memory allocation
"Jim Langston"   2008-05-15 09:14:53 
Re: Dynamic Memory allocation
CBFalconer <cbfalconer  2008-05-14 09:35:07 
Re: Dynamic Memory allocation
Szabolcs Borsanyi <bor  2008-05-14 08:13:40 
Re: Dynamic Memory allocation
Keith Thompson <kst-u@  2008-05-14 09:20:00 
Re: Dynamic Memory allocation
Szabolcs Borsanyi <bor  2008-05-14 09:26:18 
Re: Dynamic Memory allocation
Keith Thompson <kst-u@  2008-05-14 09:36:30 
Re: Dynamic Memory allocation
CBFalconer <cbfalconer  2008-05-14 12:28:50 
Re: Dynamic Memory allocation
sandy <sandeepksinha@[  2008-05-14 10:07:49 
Re: Dynamic Memory allocation
"Malcolm McLean"  2008-05-14 23:13:55 
Re: Dynamic Memory allocation
sandy <sandeepksinha@[  2008-05-15 00:49:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:35:11 CDT 2008.