Did I do this function Prototype and function definition correctly?? - TechRepublic
Question
July 14, 2010 at 08:57 PM
vineo76

Did I do this function Prototype and function definition correctly??

by vineo76 . Updated 15 years, 10 months ago

I am to write a function prototype that divides two numbers…a function prototype that finds the larger of two numbers, and a function prototype that prints an ATM menu….then I am to build function definitions for the function prototypes.
My solution is below:

#include
/* function prototypes */
int divideTwoNumbers(int, int);
int GreatestNumber(int, int);
void PrintMenu();

main()

/* function definitions */
int divideTwoNumbers(int divOne, int divTwo);
int GreatestNumber(int greatOne, int greatTwo);
void PrintMenu();

This discussion is locked

All Comments