Interview Questions

What should the 64-bit type be on a machine that can support it?

C Interview Questions and Answers


(Continued from previous question...)

What should the 64-bit type be on a machine that can support it?

The new C99 Standard specifies type long long as effectively being at least 64 bits, and this type has been implemented by a number of compilers for some time. (Others have implemented extensions such as __longlong.) On the other hand, it's also appropriate to implement type short int as 16, int as 32, and long int as 64 bits, and some compilers do.

(Continued on next question...)

Other Interview Questions