Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Answers to Review: Arrays (b)


White Box Testing

1. five errors:

  • in line 6 the variable should be venus[4]
  • line 7 should end with a semicolon ;
  • line 8 should be: for(i = 0; i < 2; i++)
  • in line 10 the newline character should be \n
  • in line 12 the variable should be venus[i]
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1