C program to create user define function

User define function are those function which us developed by user at the time of writing program. For more detail click here.

Simple c program to create user define function
#include<stdio.h>

//Globle declaration of UDF.
void printline();

void main()
{
//local declaration of UDF.
void printstar();
clrscr();
printline();  //function Calling
printf("\nThis is an Example of User-Define Function\n");
printline();  //Function calling
printstar();  //function calling

getch();


}
//Function defination
void printline()
{
printf("-------------------------------");

}
//function defination
void printstar()
{
printf("\n**********************************\n");

}



For brief explanation about User Define Function Click here.


0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.