954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Size difference

Hi is there any difference between the size of a struct type and the size of it's instance?
similarly with enum type and it's instance...

Codeburner
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

No, there's no difference, assuming we're talking about the result of the sizeof operator and any assumptions gleaned from it rather than technicalities such as the struct hack.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: