ABSTRACT

A variable in C is a memory location with a given name. The value of a variable is the content of its memory location. A program may use the name of a variable to access its value. Variables must be declared before being used in the program, and before any executable statements. Each data type specifies the range of values that may be stored in a variable of that type. C allows different data types to be mixed in the same expression. Therefore, the compiler should follow some rules, in order to perform type conversions if necessary. The arithmetic conversions are applied to binary operators that expect operands of arithmetic type, including arithmetic, relational, and equality operators. The compiler will associate the conversion specifications with the names of each of the variables from left to right. Each conversion specification should match the type of the respective variable or the output will be meaningless.