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)
15 Million Students Helped!
Sign up to view the full answer