This lesson introduces C# expressions, types, and variables. | Tutorial Page 1 of 8 Using Excellent Tools to Write Web Applications Tar the .NET Common Language Runtime CLR Home Up Lesson01 Lesson02 Lesson03 Lesson04 Les Lesson06 Lesson07 Lesson08 Lesson09 Lesson10 Les Lesson12 Lesson13 On sale Now C Unleashed is an indepth guide for intermediate to advanced software developers to learn the C programming language and serve as a desktop reference. The C Station Tutorial by Joe Mayo 8 27 00 updated 10 6 01 Lesson 2 Expressions Types and Variables This lesson introduces C expressions types and variables. It s goal is to meet the following objectives Understand what a Variable is. Learn the C simple types. Obtain a basic understanding of C expressions. Learn what the String type is. Learn how to use Arrays. Variables are simply storage locations for data. You may place data int them and retrieve their contents as part of a C expression. The interpretation of the data in a variable is controlled through Types . C is a strongly Typed language. Thus all operations on variables are performed with consideration of what the variable s Type is. There are rules that define what operations are legal in order to maintain the integrity of the data you put in a variable. The C simple types consist of the boolean type and three numeric types integrals floating point and decimal. Listing 1-1. Displaying Boolean Values using System class Booleans public static void Main bool content true bool noContent false It is 0 that C Station provides C programming langua http Tutorials 6 24 2002 Tutorial Page 2 of 8 content. content The statement above is not 0 . noContent In Listing 1-1 the boolean values are written to the console as a part of a sentence. The bool type is simply either a true or false. When run this program produces the following output It is True that C Station provides C programming language content. The statement above is not False. The following table