"Passing Data" Please respond to the following:


label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

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

Nov 21st, 2017

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

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 21st, 2017
...
Nov 21st, 2017
Nov 22nd, 2017
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