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 (d)


White Box Testing

1. three errors:

  • in line 2, use <ctype.h> instead of string.h
  • in line 8 there are two errors, so the line should be: if(isalpha(initial) == 0)

2. two errors:

  • in line 2, use <ctype.h>
  • in line 8, the function is spelled isupper
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1