Learn How to Program in Cby Dr. Kristin Switala
|
|
Answers to Review: Variables (c)
General Questions
1. %d
2. %ld
3. %d or %f (depending on whether it is an integer or a float)
4. E
White Box Testing
1. two errors:
- the last line should have two %ld instead of two %d
1. three errors:
- in line 5, F should be E
- in line 8, %d should be %11.0f
- in line 10, %f should be %11.0f
|
|