Article View: cn.comp.lang
Article #80Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
From: ChiLL
Date: Mon, 25 Jun 2007 12:18
Date: Mon, 25 Jun 2007 12:18
38 lines
2718 bytes
2718 bytes
�ⲻ��Ч�������, ��Windows��VS����������Ч��Ӧ�û��DZ�������������ø�.
"batch" <chinaonhb@hotmail.com> д����Ϣ����:f5o1u5$mch$1@news.yaako.com...
> ��������
> ��������������������������������������������
> #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�������Ѿ�ʹ�����Ż�ѡ�
> �������ʵ�������˵��ˡ�
Technical Details
Message-ID:
<f5obqv$63r$1@news.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mail From: "ChiLL" <arthur.ping.foo@gmail.com> Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan Subject: Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ�� Date: Mon, 25 Jun 2007 20:18:13 +0800 Organization: University of Electronic Science and Technology of China Lines: 40 Message-ID: <f5obqv$63r$1@news.yaako.com> References: <f5o1u5$mch$1@news.yaako.com> NNTP-Posting-Host: 221.237.55.83 X-Trace: news.yaako.com 1182773920 6267 221.237.55.83 (25 Jun 2007 12:18:40 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Mon, 25 Jun 2007 12:18:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original