| delorie.com/archives/browse.cgi | search |
| Message-ID: | <34DCC5FD.74D9@quantum.de> |
| Date: | Sat, 07 Feb 1998 21:37:17 +0100 |
| From: | Tom Chojnacki <chojnack AT quantum DOT de> |
| Reply-To: | chojnack AT quantum DOT de |
| Organization: | Quantum Software GmbH, Dortmund, Germany |
| MIME-Version: | 1.0 |
| To: | Michael Matczynski <michaelm AT dataplusnet DOT com> |
| CC: | djgpp AT delorie DOT com |
| Subject: | Re: 8 Byte Integer |
| References: | <3 DOT 0 DOT 32 DOT 19980207131923 DOT 0083a980 AT dataplusnet DOT com> |
Michael Matczynski wrote:
>
> Is there a way so I can specify the size of an integer in DJGPP.
There is 'sizeof' operator in C language.
Simply use:
printf("size = %d", sizeof(int));
and you will get the size of the specified type in bytes.
'long' and 'int' types have both 4 bytes width.
And there is 'long long' type which has width of 8 bytes.
Tom
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |