Function call

what is meant by function call? Can show me any examples?

Maybe calling a function is called a "function call"

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

void SomeFunction()
{
    std::cout << "Hello World!" << std::endl;
}

int main(void)
{
    SomeFunction(); // < a function call?
    return 0;
}
Last edited on
Gamer2015
thanks man!!!
#include<iostream.h>
class program
{
public:
void call()
{
cout<<"\n HELLO WORLD ";
}
};
int main()
{
program p;
p.call();
return 0;
}


a function call is one where you call the member function from the main function...in the above program,in the main function, p.call(); is the function call of the object,"program".
C Pranav
thank you my friend.
Topic archived. No new replies allowed.