| | List |
| Subject: | Re: dependency of sizeof operator |
| Poster: | Malcolm McLean |
| Date: | Fri, 23 Mar 2007 15:10:45 -0500 |
| Related Postings: | 1 2 3 4 |
"vandana" wrote in message
> Output of sizeof(int) varies.But on what it depends.Can anybody please
> help me to find out if it is compiler dependent or operating system
> dependent?
>
int should be the same size as a register. However some wicked people have
implemented 32 bit ints on 64-bit machines. So it is up to the compiler
writer.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
|
|