Node:Questions for Chapter 5,
Previous:Storage classes,
Up:Variables and declarations
Questions for Chapter 5
- What is an identifier?
- Which of the following are valid C variable names?
Ralph23
80shillings
mission_control
A%
A$
_off
- Write a statement to declare two integers called
start_temperature
and
end_temperature
.
- What is the difference between the types
float
and double
?
- What is the difference between the types
int
and unsigned int
?
- Write a statement that assigns the value 1066 to the integer variable
norman
.
- What data type do C functions return by default?
- You must declare the data type a function returns at two places in a
program. Where?
- Write a statement, using the cast operator, to print out the integer part of the number 23.1256.
- Is it possible to have an automatic global variable?