PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed

Re: dependency of sizeof operator

 List
Subject: Re: dependency of sizeof operator
Poster: swengineer001@gmail.com
Date: 23 Mar 2007 16:18:39 -0700
Related Postings: 1 2 3 4
On Mar 23, 4:10 pm, "Malcolm McLean" wrote:
> "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.
> There is no requirement for an int to match the register size of the machine it is running on so why would you say it should be that size?

 

Page2Go2.com is not responsible for content of this message.