Give an example of how you could send data to a subroutine. Do you expect the
data to change or remain the same?
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)
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?