Data Types in C#
C# Provides various built-in data type.Buit-in data types are predifined data types that can be directly used in program to declare variables.
The Following tables lists some of the built-in data types in C#.
Built-in Data Type | #Bytes | Values |
---|---|---|
Char | 2 | 0 to 65535 |
Int | 4 | -2,147,483,683 to 2,147,483,647 |
Float | 4 | 0 to 65535 |
Double | 8 | 0 to 65535 |
Bool | 1 | True or False |
String | Variable Lenth | 0-2 billon Unicode characters |