Practice mode C Language

Which C integer type is guaranteed by the C standard to be at least 64 bits wide?

Correct answer B. long long

Explanation

C99 added long long and the standard requires LLONG_MAX to be at least 9223372036854775807, so it always has at least 64 bits. A plain long only has to reach 2147483647, so it may be 32 bits, as it is on 64-bit Windows. int is only guaranteed 16 bits and short also 16 bits, which is why portable code uses long long or int64_t for 64-bit values.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.