Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - the following table lists the predefined types, their size as returned by http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The following table lists the predefined types, their size as returned by
the "sizeof" function, the size of an argument of that type and the
registers used to pass that argument if it was the only argument in the
argument list.

    Basic
Type    "sizeof"    Argument  Registers
                    Size      Used
    char      1       2       [AX]
    short int 2       2       [AX]
    int       2       2       [AX]
    long int  4       4       [DX AX]
    float     4       8       [AX BX CX DX]
    double    8       8       [AX BX CX DX]
    near
pointer      2       2        [AX]
    far
pointer       4       4       [DX AX]
    huge
pointer      4       4        [DX AX]
Note that the size of the argument listed in the table assumes that no
function prototypes are specified.  Function prototypes affect the way
arguments are passed.  This will be discussed in the section entitled
"Effect of Function Prototypes on Arguments".

Notes:

 1. Provided no function prototypes exist, an argument will be converted to
    a default type as described in the following table.

    Argument Type
        Passed As

    char
        unsigned int

    signed char
        signed int

    unsigned char
        unsigned int

    float
        double

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson