-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
C# 7.1 and .NET Core 2.0 ??? Modern Cross-Platform Development - Third Edition
By :
Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore the topics covered in this chapter with deeper research.
To get the best answer to some of these questions, you will need to do your own research. I want you to "think outside the book" so I have deliberately not provided all the answers in the book.
I want to encourage you to get in the good habit of looking for help elsewhere, following the principle of "teach a person to fish."
What type would you choose for the following "numbers"?
Create a console application project named Exercise02 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.
More Information: You can always read the documentation, available at https://docs.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting for Composite Formatting to learn how to align text in a console application.
The result of running your console application should look something like the following screenshot:

Figure 2.10: The result of the console application
Use the following links to read more about the topics covered in this chapter: