Sunday, June 9, 2013

C# Get size of any datatypes

namespace DataTypeApplication
{
   class Program
   {
      static void Main(string[] args)
      {
         Console.WriteLine("Size of int: {0}", sizeof(int));
         Console.ReadLine();
      }
   }
}

1 comment:

  1. I like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep posting ruby on rails online training

    ReplyDelete