In testing situations, I will expect you to use the first notation method which uses *. I will not expect (nor accept) pointer notation unless I specifically ask for it. I typically reserve the use of -> for linked lists.Structure Notation
call: pass_value(struct_variable); pass_address(&struct_variable); receive: void pass_value(STRUCTURE_NAME var) { var.fieldname = 23; } void pass_address(STRUCTURE_NAME *var) { (*var).fieldname = 23; } /**** using pointer notation ****/ void pass_address(STRUCTURE_NAME *var) { var->fieldname = 23; }