Array to integer problem(integer too long).

Andreas Tobler toa@pop.agri.ch
Wed Feb 16 16:58:00 GMT 2005


>-- Original Message --
>Date: Wed, 16 Feb 2005 15:12:21 +0200
>From: Victor <victor@ambra.ro>
>To: Brian Budge <brian.budge@gmail.com>, gcc-help@gcc.gnu.org
>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



More information about the Gcc-help mailing list