What the difference between
From what I've found reading online, in both cases, modifying the 'a' modifies the param passed into the function after it returns. But if mytpe is a struct, in the 1st, it requires . notation and the 2nd needs -> notation.Code:void myfunc(mytype &a); void myfunc(mytype *a);
I know only a pointer to a is passed in the 2nd, so not much gets added on the stack when the func is called, but what about the 1st? Is pointers on my system are 4 bytes, is their only an extra 4 bytes added to the stack in the 1st?
Hopefully that q was clear.