C++: Passing Parameters to a Function

  • Topic: C/C++ 
  • Thread starter AllenHe
  • Start date
  • Tags Tags
    Parameters
2 replies · 2K views · last reply
AllenHe
Messages
74
Reaction score
0
Can anyone explain to me how are the parameter passed on to the function in C++?
 
Do you mean this?
Code:
void f(int x) { ... }

// ...
f(3);
// ...

Or are you asking how it works with the stack and all that?
 
Yes. But I already got the solution from somewhere else.Thanks anyway.