What is the difference between the two methods of accessing an element within a structure and when is each appropriate?
This is not a working program. I was just trying to give an example to further explain my question.Code:typedef struct{ int a; int b; } myStruct; int main(void) { myStruct person; person.a = 1; person->b = 2; }