Monday, August 19, 2019

simple program how to define function declaration,function call,function defination.

Simple Function Program.


function define,function call,function defination in cprograms.


#include<stdio.h>
#include<conio.h>
void msg(); //function Declaration
void main()
{
clrscr();
msg();      //function call
printf("\n Hii this is Function.");
getch();
}
void msg()       //function definition
{
printf("\n Hello Cprograms.");
}


Output:



EmoticonEmoticon