"Passing Data" Please respond to the following:

Computer Science
Tutor: None Selected Time limit: 1 Day

Give an example of how you could send data to a subroutine. Do you expect the data to change or remain the same?

Jun 6th, 2015

undefined

void a1(int b); -- the same (by value)

void a2(int& b); -- can change (by reference)

void a3(int* b); -- b remain the same, *b can change (by address)

void a4(const int* b), -- b and *b remain the same.(const address)

undefined
Jun 6th, 2015

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Jun 6th, 2015
...
Jun 6th, 2015
Dec 2nd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer