// 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
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment