# What Are Function Macros For Integer Constants?

In C++ coding, there are function macros for the fixed-width integer type that expands to an integer constant expression having the value specified by its argument. Their type is the promoted type of std::int_least8_t, std::int_least16_t, std::int_least32_t, and std::int_least64_t and unsigned versions of these types respectively. In this post, we explain these function macros for integer constants in Modern C++.

## What are function macros for signed integer constants?

Here are the function macros for the fixed-width integer type that expands to an integer constant expression having the value specified by its argument. Their type is the promoted type of std::int_least8_tstd::int_least16_tstd::int_least32_t and std::int_least64_t respectively,

## What are function macros for unsigned integer constants?

Here are the function macros for the fixed-width integer type that expands to an integer constant expression having the value specified by its argument. Their type is the promoted type of std::uint_least8_tstd::uint_least16_tstd::uint_least32_t and std::uint_least64_t respectively.

## What are other function macros for integer constants?

INTMAX_C function macro, expands to an integer constant whose type is std::intmax_t,

UINTMAX_C function macro, expands to an integer constant whose type is std::ıintmax_t,

## Is there a simple C++ example of using function macros for integer constants?

Here is a very simple C++ example of how you can use function macros for integer constants.

## Is there a full C++ example of how to use function macros for integer constants?

Here is a full C++ example of how to use function macros for integer constants.

C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, MacOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs.