— Do I really need to? If I know the address(which is same throughout the program) why is there a need to save it
Message permanent page
— A needs to know the address, not you
— Wtf. Right after the call you lost this address. You don't know it. It's gone
Of cors, a has the address (which is same throughout the program).I am sorry if I am not able to explain my point well
— But if it doesn't work....
— You can't get it outside, cause only b holds it
— And b is gone
— Wait...I will gdb and double check the addresses pointed to by a before foo and after foo.
— If they are same, my point stand valid..right?
— Drop gdb and think about how pass-by-value works
— Or add a lot if debug print
— Like, print b before return and a after call