, . , , .
, , , . , , ( ), , , , , :
calc = structurepointer1->member_variable * x + c;
function(structurepointer1);
calc2 = structurepointer1->member_variable * y;
member_variable, , .
, , 1
int temp = structurepointer1->member_variable;
calc = temp * x + something;
function(structurepointer1);
calc2 = temp * y;
There is another reason why you can use a local variable for your member variables, it can make the code more readable.
source
share