LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Is not 'long long' of 8 bytes in gcc? (https://www.linuxquestions.org/questions/programming-9/is-not-long-long-of-8-bytes-in-gcc-781699/)

ishandutta2007 01-12-2010 08:34 AM

Is not 'long long' of 8 bytes in gcc?
 
Both 'long long' and 'double' are 64 bit data types in gcc but
why can't I insert a value greater than 2^31-1 (ie 32bit)
in a long long type variable.



secondly in the following code,
Code:

long long v=1000;
while(v++>=0){
printf("\n%lld",v);
}

the program continues to print negative value of v
even after 2^31-1.Why?

pixellany 01-12-2010 08:40 AM

This is a duplicate of your REPLY in your other thread. Please keep it in one thread. Duplicate closed


All times are GMT -5. The time now is 07:51 PM.