Hi, everyone.
My professor said we should use mediate variable when we want to input data to a float type member of a struct variable or an element of 2 dimensional float array.
For example:
As you can see, we input data to temp first, then assign value of temp to arrayStudent[i].grade
I wonder why we should do like that? Because when I inputed data to a float type member of a struct variable directly (without using mediate variable) by using statement scanf ("%lf", &arrayStudent[i].grade);, it didn't cause any problem.
Or maybe what my professor said is only right with old version compilers?