HOW TO CALL A FUNCTION IN C ?

Dag Hammarskjold

Total Post:24

Points:168
Posted by  Dag Hammarskjold
 1001  View(s)
Ratings:
Rate this:
Hi All,

I'm new in C++ language, so there are some problem. Basically I have created one function in C++ successfully but how and where write line of code for calling that function. Please provide useful line of code.

Thanks in advance.   
  1. AVADHESH PATEL

    Post:604

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

    try as following:

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

Answer

NEWSLETTER

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