Home > Sample chapters

Working with Variables, Operators, and Expressions in Microsoft Visual C#

Summary

In this chapter, you saw how to create and use variables and learned about some of the common data types available for variables in C#. You also learned about identifiers. In addition, you used a number of operators to build expressions, and you learned how the precedence and associativity of operators determine how expressions are evaluated.

  • If you want to continue to the next chapter, keep Visual Studio 2015 running and turn to Chapter 3.
  • If you want to exit Visual Studio 2015 now, on the File menu, click Exit. If you see a Save dialog box, click Yes and save the project.