HOW TO CREATE A FUNCTION IN C ?

C G E Mannerheim

Total Post:29

Points:203
Posted by  C G E Mannerheim
 963  View(s)
Ratings:
Rate this:
Hi,

I want to create function in C++, but how? Can you help me to do this?
If possible then provide line of code.

Any help would be amazing thank you! 
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: How to create a function in c ?

    Try as following:

    class myclass{
    public:
    show( );
    };
    myclass:: show()
    {
    cout<<"In function\n";
    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!