I have a program written in C on HP-UX 11i. The program is as
below ...
long long a;
a = 12345678987654321;
printf ("%lld",a);
I compile the code using cc compiler on HP-UX using
-Ae +DD32 option as i want it to create a 32-bit binary.
But the output of this program is not correct. But as per the
man page of cc compiler it says that with the option
-Ae +DD32 it supports 64 bit value for long long.
Now if i change the code as below
long long a;
scanf("%lld",&a);
printf ("%lld",a);
and i compile it wiith the same options and manually give this
value 12345678987654321 it works.
( Both the above code work fine with aCC -Ae +DD32 option
but i dont want to use aCC compiler)
Pls help me out in this to explain the absurd behaviour...
Thanx in advance ...............