Pointer to Structure
strcpy((*ptr).name,”Chan Tai Man”); or
strcpy(ptr->name,”Chan Tai Man”);
i.e. (*ptr).member <=> ptr-> member
Like passing array, sometime pointer to record is passed to a function in order to save memory
e.g. in lab 11stuInfo() can be rewritten as
void stuInfo(struct grades *);
and change the first input statement to