[prev] [index] [next]

Exercise: MyInt module

Design an interface to a module that provides:
  • a function to test if a number is even
    e.g. int x; ... if (isEven(x)) { ...
  • a function to test if a number is odd
    e.g. int x; ... while (isOdd(x)) { ...
Provide an implementation, testdriver and Makefile for the module.