Quick Test 5: Variables

1. The use of \n in printf

is used for output to the printer.
signifies the end-of-string.
puts the cursor on the beginning of the next line.
is used for specifying the format of int.

2. To store complete values we use variables of the type

pointer
int, or long int
float or double
string

3. The range of an int is

0 .. 255
0 .. 65535
-32768 .. 32767
-2147483648 .. 2147483647

4. Declaring a variable means

Reserving space in memory and associating a name to it.
Assigning a name and a value
Initializing a variable
Showing its value on the screen

5. In C, variables

are all set to 0 at the beginning of the program
are declared by their first use
have to be assigned a value at the time of declaration
have unpredictable values at the start of the program

6. For highest-precision floating-point calculations, we use variables of the type

boolean
float
double
long double