Challenge: Number Sizes and Ranges
Check your understanding of writing the code that prints the number of bytes in memory for some number types.
We'll cover the following
Problem statement
Write a code that outputs the number of bytes in memory that each of the following number types uses and the minimum and maximum values they can have: sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, float
, double
, and decimal
.
Expected output
The result of running your console app should look something like this:
Get hands-on with 1400+ tech skills courses.