13 Nov 2011

C# integer


You can declare and initialize a variable of the type int like this example:
        int i = 123;
When an integer literal has no suffix, its type is the first of these types in which its value can be represented: int, uint, long, ulong. In this example, it is of the type int.

No comments:

Post a Comment