Re: Array to integer problem(integer too long).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-- Original Message --
>Date: Wed, 16 Feb 2005 15:12:21 +0200
>From: Victor <victor@xxxxxxxx>
>To: Brian Budge <brian.budge@xxxxxxxxx>, gcc-help@xxxxxxxxxxx
>Subject: Re: Array to integer problem(integer too long).
>
>
>This is very strange - still not working.
>#include <sys/types.h>
>#include <stdio.h>
>#include <stdlib.h>
>int main(int argc, char **argv) {
>    long long test;
>    test = 89126342536ll;
>    printf("Test d : %d  \n", test);

 printf("Test d : %lld \n", test);

Test d : 89126342536 

man s 3 printf 

Andreas



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux