Learn How to Program in Cby Dr. Kristin Switala
|
|
Answers to Review: Arrays (d)
White Box Testing
1. three errors:
- all three errors are in line 7, which should be:
- printf("Each distance occupies %d bytes of memory.", sizeof(distances[0]));
2. three errors:
- all three errors are in line 6, which should be:
- int k = sizeof(apt)/sizeof(apt[0]);
|
|