🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.c
Article #680

配列とsizeof演算子で.

#680
From: S.Takeuchi
Date: Sun, 08 Mar 1998 00:00
16 lines
748 bytes
処理系は,VC4.2です. OSはWIn95です.
下記の出力値は,40になるのですが,
その理由がわかりません.
よろしくお願いします.

int main(void)
{

 int xxx[10];

 printf("xxx[10]=%u\n",sizeof(xxx));
  return(0);
}

S.Takeuchi
Technical Details
Message-ID: <3502A5D4.25689D66@anet.ne.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 106434,4c716562398882e4,start
X-Google-Attributes: gid106434,public
From: "S.Takeuchi" <tokyoweb@anet.ne.jp>
Subject: 配列とsizeof演算子で.
Date: 1998/03/08
Message-ID: <3502A5D4.25689D66@anet.ne.jp>
X-Deja-AN: 331944084
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=iso-2022-jp
Organization: Japan
Mime-Version: 1.0
Newsgroups: fj.lang.c