Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Passing parameters

  1. Jan 9, 2012 #1
    Can anyone explain to me how are the parameter passed on to the function in C++?
  2. jcsd
  3. Jan 10, 2012 #2


    User Avatar
    Science Advisor
    Homework Helper

    Do you mean this?
    Code (Text):

    void f(int x) { ... }

    // ...
    // ...
    Or are you asking how it works with the stack and all that?
  4. Jan 13, 2012 #3
    Yes. But I already got the solution from somewhere else.Thanks anyway.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook