Built-in types in C#
1. Boolean type – Only true or false2. Integral Types - sbyte, byte, short, ushort, int, uint, long, ulong, char
3. Floating Types – float and double
4. Decimal Types
5. String Type
Boolean type
It is used to declare variables to store the Boolean values, true and false.Integral Types
For further detail visit : https://msdn.microsoft.com/en-us/library/exx3b86w.aspxFloating Types
For further detail visit : https://msdn.microsoft.com/en-us/library/9ahet949.aspxDecimal Types
For further detail visit : https://msdn.microsoft.com/en-us/library/364x0z75.aspx using System;
class Program
{
static void Main()
{
int i = int.MaxValue;
Console.WriteLine(i);
}
}
No comments:
Post a Comment