short&int in kdevelop 2.0???

Richard Moore rich at xmelegance.org
Tue Apr 23 17:41:24 BST 2002


----- Original Message -----
From: "oak_hj" <oak at sina.com>
To: <kdevelop at barney.cs.uni-potsdam.de>
Sent: Tuesday, April 23, 2002 2:54 PM
Subject: short&int in kdevelop 2.0???


> hi:
> During our project,i find a strange problem:
> it seems that short = 2 bytes
> while int = 4 bytes,
> and long = 4 bytes???
> but in the standard c,they should be equal!

There is no requirement that they should be equal, the only requirement in
standard C is that sizeof(long) >= sizeof(int) >= sizeof(short). The actual
sizes are dependent on the compiler and architecture.

Cheers

Rich.

> it is a bug?
> ______________________________________
>
> ===================================================================
> ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
> ÐÂÀË·ÖÀàÐÅÏ¢£º¶þÊÖÊг¡×ßÒ»×ߣ¬¸Ã³öÊÖʱ¾Í³öÊÖ£¡
(http://classad.sina.com.cn/2shou/)
>
> -
> to unsubscribe from this list send an email to
kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list