How to get the size, the min and the max of long long Data Type in C

1 Answer

0 votes
#include <stdio.h> 
#include <limits.h> 
 
int main(void)
{   
    printf("%d\n", (int)sizeof(long long));
    printf("%lld\n", LLONG_MIN);
    printf("%lld\n", LLONG_MAX);
     
    return 0;
}
 
    
/*
run:
 
8
-9223372036854775808
9223372036854775807

*/

 



answered Dec 12, 2016 by avibootz

Related questions

1 answer 232 views
1 answer 175 views
1 answer 178 views
1 answer 153 views
...