Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
current address
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Vu Pham, post: 1706318"] In order to mark the current address at a given point of the variable block, I use the char dummy[0] as follows : int a; long b; short int c; char dummy[0]; By this way, I can calculate the size of the memory block that contains all the vars : size = dummy - ( char *) & a; Is there any other way to do this ? Such as _bookmark1 int a; long b; short int c; _bookmark2 size = bookmark2 - bookmark1; Thanks, Vu [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
current address
Top