C# program to find the size of data types
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ——————————————————————————————————————————— Program to find the size of data types ——————————————————————————————————————————— Size of int | 4 Size of float | 4 Size of double | 8 Size of char | 2 Size of bool | 1 Size of byte | 1 Size of short | 2 Size of long | 8 Size of decimal | 16 Size of sbyte | 1 Size of uint | 4 Size of ulong | 8 Size of ushort | 2 ——————————————————————————————————————————— kodingwindow@kw:~/csharp$
Advertisement