Learn How to Program in Cby Dr. Kristin Switala
|
|
Answers to Review: Variables (d)
General Questions
1. %c
2. %s
3. American Standard Code for Information Interchange
4. to add an extra character at the end of a string
White Box Testing
1. two errors:
- line 4 should end with a semicolon ;
- in line 6, put an ampersand in front of the variable, like this: &first
2. four errors:
- in line 4, put empty brackets after the variable, like this: name[ ]
- in line 5, add double quotes: "North Pole"
- in line 9, the %d should be %s
- in line 12, the second %s should be %d
|
|