Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C#

int: practical reference

int: practical reference: int is the alias for the 32-bit signed System.Int32.

Version: C# built-in type reference; .NET 10 runtime

Syntax

int value

int is the alias for the 32-bit signed System.Int32.

Use it as the default integral type for counters and in-range indices.

Division discards the fractional part, and overflow behavior follows checked context.

Its range is -2147483648 through 2147483647; negating MinValue overflows.

The complete program actually uses int; its exact expected stdout is System.Int32.

Examples

using System;

Console.WriteLine(typeof(int).FullName);

Result

System.Int32

The complete program actually uses `int`; its exact expected stdout is `System.Int32`.

Sources