Demonstrate how to get the size of a variable.

See also: Host introspection

 
class Program
{
    static void Main(string[] args)
    {
        int i = sizeof(int);
        Console.WriteLine(i);
        Console.ReadLine();
    }       
}
 