Search This Blog

Loading...

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.";
}

No comments:

Post a Comment