User define function are those function which us developed by user at the time of writing program. For more detail click here.
For brief explanation about User Define Function 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");
}
//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