471,119 Members | 1,109 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

virtual revisited

small question: virutal functions, regular fucntions and inline
functions take the same space (ex: 4 bytes or 8 bytes 32 and 64 bits
respectively)? According to alignement rules: compiler is tring to fit
as many variable (data types) as possible in each block for as long as
it fits entirely or else adds padding... is that the correct way of
also, is function always represented as a pointer in a struct and
occupies its size?

Jul 22 '05 #1
0 1157

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by JKop | last post: by
1 post views Thread by puzzlecracker | last post: by
11 posts views Thread by santosh | last post: by
32 posts views Thread by Adrian Herscu | last post: by
5 posts views Thread by sandman | last post: by
2 posts views Thread by Heinz Ketchup | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.