struct studinfo {   char studentname[30];            30

                             struct studinfo *nextgpa;           4

                             short   age, credithours;          2, 2

                              long  weightindrams;                4

                              float  gpa; };                              4

                                                                               46

 

Since:  &student[3].weightindrams ==  7686

Then &student[3] == 7686 – 2 – 2 – 4 – 30 = 7648

 

Then our table would be:

 

Number

Address

Name

Nextgpa

age

CH

WID

GPA

0

7510

Christie, Agatha

7694

96

82

37324

3.05

1

7556

Shakespeare, Bill

7648

256

12

52253

3.56

2

7602

Albee, Edward

7510

76

120

72689

2.78

3

7648

Voltaire

NULL

56

82

64766

3.75

4

7694

Chaucer, Geoffry

7556

420

91

41566

3.25

5

7740

Grisham, John

7602

46

24

66456

1.57

 

 

What is the value of  head (after the links are complete)? 7740

What is the value of  &head (after the links are complete)?  UNKNOWN

What is the value of  &student[4]?  7694

What the value of student[0].nextgpa? 7694

What is the value of  student[2].nextgpa-> weightindrams? 7510 -> 37324

What is the value of  student[4].nextgpa -> studentname? 7556 -> Shakespeare, Bill

 If present = student[3].nextgpa; what is the value of ++present ???

         present first contains the address:  7648 + 30 = 7678

         Therefore, after ++present it will contain the value: 7678 + 46 = 7724

If present = student[0].nextgpa; what is the value of present -> nextgpa ->nextgpa ->credithours ?

         present will contains the address:  7694

         Therefore:  7694 -> 7556 -> 12

What the value of  &student[85].age ? 7510 +85*46 +30 + 4 = 11454