CIS126: PROGRAMMING I

Unit 3 Discussion

Modules in C are called functions.  C programs are typically written by combining user-created functions as well as “pre-packaged” functions found in the C Standard Library.  For instance, printf() is a function that is found in the C Standard Library and is accessed through the stdio.h header file. 

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 <stdio.h>

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.

Save time and excel in your essays and homework. Hire an essay writer for the best price for the top-notch grade you deserve.
275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.

12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.

Double line spacing

Your essay will have double spaced text. View our sample essays.

Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.

We Accept
Image 3