470,841 Members | 1,065 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

word size

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
1 6328
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.

Similar topics

4 posts views Thread by Microsoft | last post: by
14 posts views Thread by Singleton | last post: by
12 posts views Thread by enak | last post: by
8 posts views Thread by scorpion53061 | last post: by
1 post views Thread by blue_nirvana | last post: by
11 posts views Thread by arnuld | last post: by
2 posts views Thread by allan.s.palmer | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.