How to correctly assign a variable by derefencing a pointer to a dynamically allocated C struct?
... if this is possible: "Under the hood, C is still using pointers to accomplish this." ( source: https://gribblelab.org/CBootCamp/8_Pointers.html#org0f30681 ) When I get the pointer to a struct firstly defined as a simple variable, I'm able to access struct members for read and write operations, either by using the variable and dot notation ( var.property ) or the pointer and the arrow notation ( ptr->property ). But doing the converse ( dynamically allocating memory to a struct pointer and derefenrencing it to a simple variable ) doesn't let me able to modify ( write ) a property of the original struct ( future access by the var.property get the new value, but keep the old value by accessing it through the ptr->property ). Also, the &var adress appears totally different of the ptr one ^^ ( sounds like a binded variable, wich store elsewhere new value, but kept reference to the original dynamically allocated struct in memory and not allowing modifications on the original struct pointer properties but only through the original ptr->properties wich doesnt reflect modifications done through the var.properties notations ). Look ( and run ) this basic code example to better figure my problem: https://code.sololearn.com/cn2KDONtLWR7/#c