In this Unit, we are going to focus on creating our own functions. Create your own function and upload it to the forum area for discussion. Make sure that you include the correct syntax (function prototype, function call, and function definition). You can create a function that can do any kind of task. For instance, the function may display a message to the screen or compute a value. Let’s look at an example: #include void PrintMessage(void); //function prototype int main (void) { PrintMessage(); //function call return 0; } void PrintMessage(void) //function definition { printf(“Create your own function”): } This program will call the function PrintMessage in main() and display the text Create your own function to the output screen.
Get Free Quote!
282 Experts Online