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