go to home page   go to next page

Created: 08/23/2015


Unstructured C

This chapter explains common situations where many programmers deviate from strict structuring rules.

Chapter Topics:


QUESTION 1:

(Design Question: ) How would you write a function finds the maximum of three integers? Say that the prototype for the function is

int maxThree( int a, int b, int c);

pre-condition: a, b, and c are integers.

exit condition: returned value is the maximum of a, b, and c