Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 12366

Working with variables, operators, and expressions in Microsoft Visual C#

$
0
0

This chapter from Microsoft Visual C# Step by Step, 8th Edition introduces you to the elements of Microsoft Visual C# syntax and semantics, including statements, keywords, and identifiers.

After completing this chapter, you will be able to:

  • Understand statements, identifiers, and keywords.
  • Use variables to store information.
  • Work with primitive data types.
  • Use arithmetic operators such as the plus sign (+) and the minus sign (–).
  • Increment and decrement variables.

Chapter 1, “Welcome to C#,” presents how to use the Microsoft Visual Studio 2015 programming environment to build and run a console program and a graphical application. This chapter introduces you to the elements of Microsoft Visual C# syntax and semantics, including statements, keywords, and identifiers. You’ll study the primitive types that are built in to the C# language and the characteristics of the values that each type holds. You’ll also see how to declare and use local variables (variables that exist only in a method or other small section of code), learn about the arithmetic operators that C# provides, find out how to use operators to manipulate values, and learn how to control expressions containing two or more operators.

Finish reading the chapter here.


Viewing all articles
Browse latest Browse all 12366

Trending Articles