Root is not updating


Why my root is not updating, Afterall the pointer is setting.

Hey,take root as refrence then only your changes will be reflected in main

please tell me the difference in both the cases.