Hello. If I have the following struct
How do I declare a pointer to "name" within the structure so that I couldCode:struct rec { char name[20]; int age; }p1; struct rec *ptr = &p1; strcpy(ptr->name, "John"); ptr->age = 20;
use it to move through the name array for whatever reason? I know
that "ptr->name" is a pointer to name, but can I increment this pointer to access
individual bytes within name[]?
Sorry, I'm kinda new to structures.
thanks