caller of the function / the called function?

Hello c+plusers :-)

sometimes i get kinda confused about the language about functions.... so i just need this totally straight up.

What is the difference between:
- functioncall
- caller of the function
- the callling function
- the called function

or whatever...

1
2
3
4
5
6
7
8
9
10
11
void gogo() //is this the called functions or whatever?
{
  //.......
}

int main()
{
   gogo(); //is this the the calling function or this this or this?
   return 0;
}


In your example
1
2
3
4
void gogo() //This is a function implementation..
{
  //.......
}


In the following snippet:
1
2
3
4
5
int main() 
{
   gogo(); // This is a function call.
   return 0;
}

main() is a function that is calling gogo(). main() would be considered the calling function, gogo() would be the called function.
Last edited on
ok thank you
Topic archived. No new replies allowed.