Article View: gnu.gcc.bug
Article #6319structure size
From: Travis Bauer
Date: Tue, 19 Dec 1995 00:00
Date: Tue, 19 Dec 1995 00:00
50 lines
1883 bytes
1883 bytes
#include"stdio.h"
struct Toilday {
char header[6];
long date;
char wname[16];
/* long ft1;
double inch1;
char ft2;
double inch2;
char ft3;
double inch3;
char ft4;
double inch4;
char ft5;
double inch5;
char remarks1[56];
char remarks2[56];
char remarks3[56];
char remarks4[56];
char remarks5[56];
*/
};
main()
{
Toilday oilday;
printf("oilday: %d\n\n", sizeof(oilday));
printf("oilday.header: %d\n", sizeof(oilday.header));
printf("oilday.date: %d\n", sizeof(oilday.date));
printf("oilday.wname: %d\n", sizeof(oilday.wname));
/*
printf("oilday.ft1: %d\n", sizeof(oilday.ft1));
printf("oilday.inch1: %d\n", sizeof(oilday.inch1));
printf("oilday.ft2: %d\n", sizeof(oilday.ft2));
printf("oilday.inch2: %d\n", sizeof(oilday.inch2));
printf("oilday.ft3: %d\n", sizeof(oilday.ft3));
printf("oilday.inch3: %d\n", sizeof(oilday.inch3));
printf("oilday.ft4: %d\n", sizeof(oilday.ft4));
printf("oilday.inch4: %d\n", sizeof(oilday.inch4));
printf("oilday.ft5: %d\n", sizeof(oilday.ft5));
printf("oilday.inch5: %d\n", sizeof(oilday.inch5));
printf("oilday.remarks1: %d\n", sizeof(oilday.remarks1));
printf("oilday.remarks2: %d\n", sizeof(oilday.remarks2));
printf("oilday.remarks3: %d\n", sizeof(oilday.remarks3));
printf("oilday.remarks4: %d\n", sizeof(oilday.remarks4));
printf("oilday.remarks5: %d\n", sizeof(oilday.remarks5));
*/
}
Technical Details
Message-ID:
<m0tS2ZW-0003giC@acc.jc.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,23ed274e9f2aff0b,start X-Google-Attributes: gid113d02,public From: bauer@acc.jc.edu (Travis Bauer) Subject: structure size Date: 1995/12/19 Message-ID: <m0tS2ZW-0003giC@acc.jc.edu> X-Deja-AN: 122307799 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug