Function in C++

#include<conio.h>
#include<iostream.h>

void printmessage();    //This will create a prototype of function.

void main()
{
    printmessage();        //This will call the function written below.
    getch();
}

void printmessage()
{
    cout<<"This is print function.";
}

Post a Comment

0 Comments