struct student ST[] = {{1, "John", 60}, {2, "Jack", 40}, {3, "Jill", 77}, {4, “Sam”, 78 }, {5,
“Dean”, 80}};
struct student *ptr = ST; //&ST is illogical
printf("\n%d\n", *ptr); //prints 1
This is taken from my university textbook. Both ST and &ST return a considerably large number which I presume to be the address of the structure variable. But according to my intuition, ST shouldn't work. ST doesn't return an address right? How is it getting stored? Why is &ST stated as illogical?