Article View: cn.comp.lang
Article #65Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
From: ����ֽҳ
Date: Fri, 29 Jun 2007 16:18
Date: Fri, 29 Jun 2007 16:18
43 lines
2543 bytes
2543 bytes
����ܱȽϵij�Ч��� ����ɵ��ļ���С�� -_#
Last time, Fat "batch" <chinaonhb@hotmail.com> says:
>��������
>��������������������������������������������
>#include <stdio.h>
>#include <stdlib.h>
>
>int main ()
>{
> int a;
> a = sizeof(char);
> printf ("char %d\n",a);
> a = sizeof(unsigned char);
> printf ("unsigned char %d\n",a);
> a = sizeof(short);
> printf ("short %d\n",a);
> a = sizeof(unsigned short);
> printf ("unsigned short %d\n",a);
> a = sizeof(int);
> printf ("int %d\n",a);
> a = sizeof(unsigned int);
> printf ("unsigned int %d\n",a);
> a = sizeof(long);
> printf ("long %d\n",a);
> a = sizeof(unsigned long);
> printf ("unsigned long %d\n",a);
> a = sizeof(long long);
> printf ("long long %d\n",a);
> a = sizeof(unsigned long long);
> printf ("unsigned long long %d\n",a);
> system ("pause");
> return 0;
>}
>
>��������������������������������������������
>
>GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>�������ʵ�������˵��ˡ�
--
�������Ƚ���google��Ȼ���ٽ���������ѡ�����
Technical Details
Message-ID:
<468a1094.285618387@news.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mailReferences:
<f5o1u5$mch$1@news.yaako.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11047e,68dfa6a18681adeb X-Google-Thread: 107c7f,68dfa6a18681adeb X-Google-Attributes: gid11047e,gid107c7f,public,usenet X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail From: ����ֽҳ <fzhzhy@126.com> Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan Subject: Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ�� Date: Sat, 30 Jun 2007 00:18:29 +0800 Organization: ����ֽҳ Lines: 43 Message-ID: <468a1094.285618387@news.yaako.com> References: <f5o1u5$mch$1@news.yaako.com> Reply-To: fzhzhy@126.com NNTP-Posting-Host: 61.51.179.46 Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: news.yaako.com 1183133942 4758 61.51.179.46 (29 Jun 2007 16:19:02 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Fri, 29 Jun 2007 16:19:02 +0000 (UTC) X-Newsreader: Forte Agent 1.8/32.553