Why is address operator not needed for stud->names.firstName? But address operator is required in &stud->studentid ?
struct student {
    struct
    {
        char lastName[10];
        char firstName[10];
    } names;
    int studentid; 
};
int main()
{  
    struct student record;
    GetStudentName(&record);
    return 0;
}
void GetStudentName(struct student *stud)
{
    printf("Enter first name: ");
    scanf("%s", stud->names.firstName); //address operator not needed
    printf("Enter student id: ");
    scanf("%d", &stud->studentid);  //address operator needed
}
 
     
    