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: Conditionals (b)


General Questions

1. tests if two conditions are both true

2. tests if one condition (of two) is true

3. reverses the value of a condition


White Box Testing

1. two errors:

  • in line 6, use double ampersand &&
  • in line 6, use (born < 1969) instead of >

2. two errors:

  • in line 9, use ? instead of !
  • in line 10, use double equal signs ==
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1