Question

Locked

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();

main()


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

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Peripheral Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums