comparing outputs for call by value, call by address and call by reference with in single program in c++
Compare the outputs for call by value,call by reference andcall by address wuthin a single program in c++?
hopefully this will help...
whether you call by value (e.g. myFunction(int x)), call by reference (e.g. myFunction(int%26amp; x)) or call by address (e.g. myFunction(int *x)) will be determined by the code before and after the actual function call (i.e. the software design).
Without knowing the design or more detail of your question, the outputs can be engineered identically. Consider this a cat-skinning issue and I await your further questions...
cosmos
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment