virtual revisited

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • puzzlecracker

    #1

    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
    thinking?


    also, is function always represented as a pointer in a struct and
    occupies its size?


    Thanks...

Working...