Data types in vb.net
Why does the data-type boolean take 2 bytes in vb.net?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 23, 2012, 11:56 AM
using System;
class Test
{
static void Main()
{
int size = sizeof(Boolean);
Console.WriteLine(size); // 1
Console.ReadKey();
}
}