New course! Every coder should learn Generative AI!
Try a free lesson+ 6
In C, everything is passed by value. If you want to alter the value of a variable which is passed into a function, you have to pass a pointer of the variable; Likewise, if you wish to change the address stored within a pointer which is passed into a function, you have to pass a pointer of that pointer.
https://code.sololearn.com/cSD0N8ybK91a/?ref=app