// TASK C1.1: Explain the purpose of the '&' in a parameter.
// TASK C1.2: Explain what the program would do if the '&' was omitted in
// the initialiseStack() function header,
1
Expert's answer
2014-09-12T08:32:46-0400
Problem. // TASK C1.1:Explain the purpose of the '&' in a parameter. // TASK C1.2: Explain what the program would do if the '&' was omitted in // the initialiseStack() function header, Remark. I suppose that it is C++ question, as in Action Script ‘&’ meansconcecatnation of the parameters in URL. Solution. An ampersand sign (&), known as referenceoperator, returns the address ofthe variable. Hence when the argument of the function is &variable, then we pass theaddress of the variable. Thereforeif we modify the variable in the body of the function, then variable will be modified, as a global variable. If sign is omitted, then variable will be modified, as a local variable.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment