By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

word size

P: 1
HI All,
I am using some processor with word size say 16bits.
1)Now i write a small program and print the sizeof(int)--- here I am using borlan c complier.Then i get answer as 2.
2)now if i repeat the step 1 using VC++ complier --- amswer is 4.

Can any one tell me how sizeof() is evaluated form processor to processor and complier to complier :confused:

bye arvi
Jun 18 '06 #1
Share this Question
Share on Google+
1 Reply


P: 1
HI All,
I am using some processor with word size say 16bits.
1)Now i write a small program and print the sizeof(int)--- here I am using borlan c complier.Then i get answer as 2.
2)now if i repeat the step 1 using VC++ complier --- amswer is 4.

Can any one tell me how sizeof() is evaluated form processor to processor and complier to complier :confused:

bye arvi
Try to change the memory model settings in borland IDE and see the difference
Jun 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.