typedef struct char fname30 char lname30 Student typedef str
typedef struct {char fname[30]; char lname[30];} Student; typedef struct {int num; char name[30]; Student stud[50];} Course; Assume var has been assigned the address of a Course structure. Course *var = malloc(sizeof(Course)); Accessing the variable fname of first student can be correctly implemented by: (\'(\'var).stud).fname var->stud[0].fname *var.\"var.fname var->*stud.fname (*var->stud).fname 2 only 1, 2 and 5 2 and 5 1, 2 and 3 2, 3 and 4
Solution
ANS)
1,2 and 3
explanation:
*VAR is store the addres of the data holds
very student have one name of data
var is address of data
![typedef struct {char fname[30]; char lname[30];} Student; typedef struct {int num; char name[30]; Student stud[50];} Course; Assume var has been assigned the a typedef struct {char fname[30]; char lname[30];} Student; typedef struct {int num; char name[30]; Student stud[50];} Course; Assume var has been assigned the a](/WebImages/40/typedef-struct-char-fname30-char-lname30-student-typedef-str-1124437-1761599194-0.webp)