O'Reilly logo

Special Edition Using C# by NIIT

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Variables and Constants

Two of the most fundamental concepts in any programming language are variables and constants. What follows is an in-depth look at these two concepts.

Variables

Variables represent memory areas where data can be stored. The value in a variable can change continuously. Variables can store any kind of data. Each variable has a type. This is specified in the variable declaration statement. The type of the variable is very important, especially in a strongly typed language like C#. The type decides the kind of operations that can be performed on the data contained in the variable.

Note

A strongly typed language is one in which the system defines the types that can be used by the programmers. The system also specifies the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required