How do you get the size of value type?
Answer:
using SizeOf operator.Example: Console.WriteLine(“The size of long is {0}.”, sizeof(long));output: The size of long is 8.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
using SizeOf operator.
need an explanation for this answer? contact us directly to get an explanation for this answerExample: Console.WriteLine(“The size of long is {0}.”, sizeof(long));
output: The size of long is 8.