Integer variables, Conditional operator, Return value, Field width specifier

Write notes on the following:
(a) Integer variables
(b) Conditional operator
(c) Return value
(d) Field width specifier

(a) Integer variables
Integer variables store numeric value with no decimal point or fraction. It includes both positive and negative values. It takes two or four bytes in memory depending on the computer and compiler being used. In Ms-DOS, it takes two bytes and its range is from -32768 to 32767.

(b) Conditional Operator
The conditional operator is also known as ternary operator. It is called ternary operator because it takes three arguments. The conditional operator return one value if condition is true and returns another value is condition is false.
Syntax : (Condition? true_value: false_value);
Example : (A > 100 ? 0 : 1);

(c) Return value
A function can return a single value. The return type in function declaration indicates the type of value returned by a function. The keyword return is used to return the value back to the calling function.

(d) Field width specifier
The number of columns used to display a value on the screen is called field width. A field width specifier describes the number of columns that should be used to print a value. It determines how the value will be displayed on the screen.