Mail Archives: djgpp/1998/02/07/16:02:15
> 1 byte: –128 to 127
> 2 byte: –32,768 to 32,767
> 4 byte: –2,147,483,648 to 2,147,483,647
> 8 byte: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
>
> I am doing a program that calculates prime numbers, so the bigger the
> better. Is there any way I can get a 4 or 8 byte integer in DJGPP?
Well, seeing as how DJGPP ints are already 4 bytes, you shouldn't have
any trouble. For 8 byte ints, try:
long long PrimeNumberVariable;
You might even want to make it unsigned for really big values.
--
/*
pneyz / Smoof Team pneyz AT bethany DOT edu
"Fine Malt Coding" http://ns.bethany.edu/pneyz/
*/
- Raw text -