RES: [Dev-C++] int and long int sizes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <and...@su...> - 2003-09-01 10:02:02
|
Thanks Mr PW,
:-) Andre
-----Mensagem original-----
De: Per Westermark [mailto:pw...@ia...]
Enviada em: segunda-feira, 1 de setembro de 2003 02:01
Para: André Macário Barros
Cc: Dev-Cpp-Users
Assunto: Re: [Dev-C++] int and long int sizes
short <= int <= long.
In this case short=2, int=long=4, which is quite common for a 32-bit
platform. On 16-bit platforms it was normally: short=int=2, long=4.
/Per W
On Mon, 1 Sep 2003, André Macário 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
>
|