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?
Ralph2380shillingsmission_controlA%A$_off
- Write a statement to declare two integers called
start_temperatureandend_temperature. - What is the difference between the types
floatanddouble? - What is the difference between the types
intandunsigned 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?