Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MainClass {
- public static void Main (string[] args) {
- /*The many different data types of c# by Adm1n_0v3rride*/
- Console.WriteLine("The sizeof int is: {0}",sizeof(int));
- Console.WriteLine("The sizeof unsigned int is: {0}",sizeof(uint));
- Console.WriteLine("The sizeof unsigned short int is: {0}",sizeof(ushort));
- Console.WriteLine("The sizeof short is: {0}",sizeof(short));
- Console.WriteLine("The sizeof sbyte is: {0}",sizeof(sbyte));
- Console.WriteLine("The sizeof long is: {0}",sizeof(long));
- Console.WriteLine("The sizeof float is: {0}",sizeof(float));
- Console.WriteLine("The sizeof double is: {0}",sizeof(double));
- Console.WriteLine("The sizeof decimal is: {0}",sizeof(decimal));
- Console.WriteLine("The sizeof char is: {0}",sizeof(char));
- Console.WriteLine("The sizeof byte is: {0}",sizeof(byte));
- Console.WriteLine("The sizeof bool is: {0}",sizeof(bool));
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement