Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

C Sharp int: Difference between revisions

From Coderwiki
new: info, example
(No difference)

Revision as of 18:03, 18 August 2025

The int class in C Sharp is a data type which can store positive and negative whole numbers in variables.

See Integer for generic information about what integers can represent and how they are represented in memory.

Example

int a;
int b = 74;
int c = (int)15.2; // 15
Contents