Short name for type long long vs long long int, standard compatible?

Most of the code I see uses shorthand types to declare a variable, for example

long long x; // long long int x
short y; // short int y

I was looking at the C ++ 11 standard (section 3.9.1), and the type is always declared completely, like long long int. I could not find references to abbreviated types. I am sure that abbreviations are standard, but they want to make sure that this is true. So my question is whether the code above meets the standard requirements.

+4
source share
3 answers

, , ++ 11 7.1.6.2 , :

10 , .

10 :

long long      "long long int"

short          "short int"
+5

, . , ++ 99

std::int8_t
std::int16_t
std::int32_t
std::int64_t

std::uint8_t .., . , .

, 64- .

+2

, . 10 7.1.6.2, 3.9.

+1
source

All Articles