can functions be called within another function?

can functions be called within another function?
for example,
i want to multiply two Matrices,A and B
and each matrix has its own void function,
so how do i do that?is it using class or structure or what?
(i also need to transpose Matrix B,and planning to do the calculation of in a void function,so how do i call back matrix B?)
thank you for your time
Lets look at the good old:
1
2
3
4
int main() {
  std::cout << "Hello\n";
  return 0;
}


The main() is a function.
The << is actually a function (that is also known as operator<<).
So main is a function that clearly calls a function.

So, yes, functions can call functions.

Rebrowse the http://www.cplusplus.com/doc/tutorial/
so this means i can put a void function in another void function,right?
thanks!
Topic archived. No new replies allowed.