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: Strings (c)


White Box Testing

1. two errors:

  • in line 8, use NULL instead of null
  • in line 12, the string function should be strstr, instead of strcat

2. two errors:

  • in line 7, the number should be distance[27]
  • in line 10, the variable should be date instead of range;
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1