| delorie.com/archives/browse.cgi | search |
| From: | Erik Max Francis <max AT alcyone DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: sizeof(long double) = 12 ??? |
| Date: | Sun, 02 Aug 1998 04:56:59 -0700 |
| Organization: | Alcyone Systems |
| Lines: | 20 |
| Message-ID: | <35C4540B.75DEE699@alcyone.com> |
| References: | <199808020838 DOT EAA10324 AT delorie DOT com> |
| NNTP-Posting-Host: | kamali.alcyone.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Guan Foo Wah wrote:
> I tried sizeof (long double) and it returns 12. I tried the same thing
> on
> MSC++ 7 and it returns 10.
>
> Why is this so ?? Is it because of the dword alignment ?
Better question: Why are you relying on Microsoft Visual C++'s size of
the long double type as the correct value? ANSI puts no such
requirements on its size.
--
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
USA / icbm 37 20 07 N 121 53 38 W
\
/ I've got the fever for the flavor of a cracker
/ Ice Cube
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |