Thanks!
Is it the same with enum too?
Thanks!
Is it the same with enum too?
A struct may or may not take up the same amount of space as an enum.
You can do sizeof(struct structname) to get the # of bytes used by a struct. The same likely works for enum (never tried).
Regardless, a well written program will not depend of the size of a struct. (The size may not be the same on every platform.)
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
The size of a struct object, with no members in the struct is one byte. I think an enum object is 4 bytes.
Videogame Memories!
A site dedicated to keeping videogame memories alive!
http://www.videogamememories.com/
Share your experiences with us now!
"We will game forever!"
thanks for your help guys