Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Size of allocated portion of memory... within the C and C++ forums, part of the Software Development category; How can we determine the size of allocated portion of memory ? Is there any way to crack the "free()" determines the size of allocated memory ?...
|
|||||||
|
|||
|
How can we determine the size of allocated portion of memory ? Is there any way to crack the "free()" determines the size of allocated memory ?
|
| Sponsored Links |
|
|||
|
Re: Size of allocated portion of memory...
you can determine the size of allocated memory by using sizeof() keyword.
e.g. if you will allocate memory using new() keyword int *p=new int[10]; //Memory dynamically allocated you can determine the size of allocated memory using sizeof() keyword int sz=sizeof(p); you can delete dynamically allocated memory using delete keyword delete []p; Thanks & Regards Venkat Gopu |
|
|||
|
Re: Size of allocated portion of memory...
Quote:
You can just use this command to see the size of your a.out file.. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| array size and transaction size in datastage | bhanutej | Data Warehousing | 0 | 06-26-2008 01:57 AM |
| Memory size occupied by object | ravitcs | Java | 1 | 02-05-2008 12:33 AM |
| MemoryCleaner performs fast and powerful memory sweep, removing wasted memory blocks, | JobHelper | Geeks Lounge | 0 | 10-06-2007 06:13 AM |
| Deallocating dynamically allocated heap | JobHelper | C and C++ | 4 | 07-25-2007 05:38 AM |
| Exam, Portion and Institutes for Aeronautics Test | suruchi | Career Advice | 0 | 05-13-2007 01:46 AM |