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.

"Int" multiplication in c++ with "long long" result

I am trying to find the square of a int. My code looks like below: long long sqr=0; int num=77778; …

c++ multiplication integer-overflow long-long
Does elegant way exist to convert double to long long?

I want to get integer part of double. But this way does not work for me: double param, fractpart, intpart; …

c++ c++11 casting double long-long
Returning a long long value

#include <stdio.h> int main(void) { long long x = test(); printf("%lld\n", x); return 1; } long long test() { …

c++ c visual-c++ long-long