INT Type

The INT type is a fundamental integral data type used in the Windows API to represent signed integers.

Syntax

typedef int INT;

Description

The INT type is an alias for the standard C/C++ int type. Its size and range depend on the underlying architecture of the system. On most modern Windows systems (32-bit and 64-bit), it is typically a 32-bit signed integer.

This type is commonly used for:

It is important to be aware of the potential range of values for INT on different architectures to prevent overflow errors.

Range

For a typical 32-bit signed integer:

On systems where int might be 16-bit or 64-bit, these ranges would differ. The Windows API generally assumes a 32-bit representation for INT on common platforms.

Platform

This type is supported on all versions of Windows.

Requirements

Header DLL
windows.h N/A (Core type)

See Also