unsigned long long int with os-x
Nicholas Strauss
nicks@carriage.chesco.com
Sun Oct 13 07:59:00 GMT 2002
Hi,
I'm trying to use gcc in darwin os-x. I've written the following piece
of code:
int main(int argc, char *argv[])
{
unsigned long long int u;
u = 1<<63;
printf("u: %ld uu: %ld\n", u, u-1);
printf("maxint %ld\n", INT64_MAX);
}
What compiler/linker options should I use with gcc?
What format should I use with printf?
Nick
infinity software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 461 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20021013/9949760a/attachment.bin>
More information about the Gcc-help
mailing list