[Solved] C does not support passing a variable by reference. How to do it?
You’re right, C does not support passing by reference (as it is defined by C++). However, C supports passing pointers. Fundamentally, pointers are references. Pointers are variables which store the memory address at which a variable can be located. Thus, standard pointers are comparable C++ references. So in your case, void Foo(char *k, struct_t* &Root) … Read more