How to call a function in c ?

Total Post:24

Points:168
 1303  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. 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( );
    }

      Modified On Mar-30-2018 03:36:52 AM

Answer