[prev] [index] [next]

Exercise: Re-implementing Quack Functions (cont)

For the array implementation of quacks, re-implement the other functions

int   isEmptyQuack(Quack);   // return 1 if Quack is empty, else 0
void  makeEmptyQuack(Quack); // remove all the elements on Quack
void  showQuack(Quack);      // print contents of Quack, from the top down

Which of these functions can be exactly the same in both quack implementations?