Top "Long-long" questions

The `long long` size modifier was introduced in C++11 and can be used with integral types to select an integer of at least 64 bits.

How do you format an unsigned long long int using printf?

#include <stdio.h> int main() { unsigned long long int num = 285212672; //FYI: fits in 29 bits int normalInt = 5; printf("My …

c syntax printf format-specifiers long-long
What kind of data type is "long long"?

I don't know this type. Is that the biggest one from all? I think it is an integer type, right? …

c objective-c long-long
sprintf for unsigned _int64

I am having following code. output of second %d in sprintf is always shown as zero. I think i am …

c++ c format-specifiers uint64 long-long
Convert long long to string in C?

I'd like to convert a long long to a string in C. long long x = 999; I'd like to convert x …

c string casting long-long
Should I use long long or int64_t for portable code?

I have an open-source codebase that is written in both C and C++. I'm looking for an integer type that …

c++ c types int64 long-long
Why do C compilers specify long to be 32-bit and long long to be 64-bit?

Wouldn't it have made more sense to make long 64-bit and reserve long long until 128-bit numbers become a reality?

c 32bit-64bit long-integer bit long-long
long long vs int multiplication

Given the following snippet: #include <stdio.h> typedef signed long long int64; typedef signed int int32; typedef signed …

c multiplication long-long
How to loop bit by bit over a long long in C++

If I have long long x; in c++, how can I loop over each bit in the number to check …

c++ bit long-long
Troubling converting string to long long in C

I'm having trouble getting the atoll function to properly set a long long value in c. Here is my example: #…

c string long-long
Declaring a long long array with unsigned int size

I was doing a problem when I encountered a segmentation fault while declaring an array as: long long ways[max+1]; …

c arrays unsigned-integer long-long