Re: [Dev-C++] int and long int sizes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-09-01 05:01:54
|
short <=3D int <=3D long.
In this case short=3D2, int=3Dlong=3D4, which is quite common for a 32-bit
platform. On 16-bit platforms it was normally: short=3Dint=3D2, long=3D4.
/Per W
On Mon, 1 Sep 2003, Andr=E9 Mac=E1rio Barros wrote:
> Dear Users,
>
> printf("%d\n", sizeof(long int));
> and
> printf("%d\n", sizeof(int));
>
> produces the same value, 4.
>
> Is there no more difference between a int and a long int?
>
> Regards
> Andre Barros
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|