If you attempt to assign a value to it which contains a fractional quantity, the value will be truncated to the integer portion. An integer may be qualified with the short, long, and unsigned keywords. By using the unsigned keyword, one instructs the compiler that all values placed in this variable will be positive, which doubles the upper range of values that may be placed in the variable. A float can hold a value with a fractional component. Consequently, there may be some degree of rounding error.
Operators Operators are one of the two types of verbs used in programming languages.
Operators specify an action to be performed on one or more data elements which we refer to as operands . In computer languages, most operators perform mathematical or logical functions. Two properties of operators which you need to be familiar with are precedence and associativity . Associativity is used to determine the order of evaluation when operators of the same precedence are used in the same statement. Following are the operators that you will be most concerned with.