Sizes of types in 64-bit C/C++ Programming

64-bit C/C++ programming



Not a fresh news, but I found this table interesting:

64-bit C/C++ programming, size of types

Actually, the whole article is really insteresting: A Collection of Examples of 64-bit Errors in Real Programs. This one is a nice reading too: Lessons on development of 64-bit C/C++ applications.

3 thoughts on “Sizes of types in 64-bit C/C++ Programming”

  1. 3dmashup

    A useful table of “what is”.

    Programmers can control the size
    by using #include which gives
    access to types like

    uint32_t
    uint64_t

    and to a certain extent control alignment using

    #pragama pack

    macros

  2. 3dmashup

    Oops! The HTML formatting ate the angle brackets of the
    #include

    The header file to include for uint32_t is
    stdint.h

Comments are closed.