468,512 Members | 1,372 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

struct memory layout

joe
struct {
int x;
int y;
int z;
};

Does the ansi standard say anything about whether field z will be
stored at a higher memory address than x ?

Joe
Jan 22 '08 #1
1 3389
joe wrote:
struct {
int x;
int y;
int z;
};

Does the ansi standard say anything about whether field z will be
stored at a higher memory address than x ?
Yes, it does, and yes, it will.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 22 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Vincezo Ciaschini | last post: by
56 posts views Thread by ccwork | last post: by
8 posts views Thread by Mike | last post: by
3 posts views Thread by GrkEngineer | last post: by
23 posts views Thread by bwaichu | last post: by
4 posts views Thread by hugo.arregui | last post: by
10 posts views Thread by Chris Saunders | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.