Thursday, 21 August 2014

Filled Under: ,

C program to display the message using function

Share




In c we can print a text message on our output screen. Here a program is given below which contains a function named message. When we execute this program a message ” Hi , How are you ? ” will display on output screen.
#include<stdio.h>
void message(); //Prototype Declaration
void main()
{
message(); // Function Call
}
void message() // Function Definition
{
printf("Hi , How are you ? ");
}
Output:
Hi , How are you ?