in C, i'd tried to use the pointer to manipulate variable, array, structure, string, and in
function parameter to modified actual argument's contents.
since the variable passed to function in C is passed by value in default (that's mean the
variable's contents returned from the function will be changed, although some modification
made onto that variable in that function.), so i use the pointer to modify common variable's
contents (e.g. for int, float, and char variable), and these all done well.
but, when i pass a pointer into a function and i attempt to change somethings in this
pointer variable in that function. and i want this changed pointer variable will be passed
to actual argument. i can change the contents (contents stored in location pointed to by
pointer variable) of the pointers successfully. but my problem here is:
HOW CAN I CHANGE THE ADDRESS POINTED TO BY THIS POINTER VARIABLE?
function parameter to modified actual argument's contents.
since the variable passed to function in C is passed by value in default (that's mean the
variable's contents returned from the function will be changed, although some modification
made onto that variable in that function.), so i use the pointer to modify common variable's
contents (e.g. for int, float, and char variable), and these all done well.
but, when i pass a pointer into a function and i attempt to change somethings in this
pointer variable in that function. and i want this changed pointer variable will be passed
to actual argument. i can change the contents (contents stored in location pointed to by
pointer variable) of the pointers successfully. but my problem here is:
HOW CAN I CHANGE THE ADDRESS POINTED TO BY THIS POINTER VARIABLE?