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

By vineo76 ·
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 <stdio.h>
/* function prototypes */
int divideTwoNumbers(int, int);
int GreatestNumber(int, int);
void PrintMenu();


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

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums