Question: #include #include struct person { char *name; int age }; void print (struct person p) { printf (Name=%s age=%d , p.name, p.age); } int main

 #include #include struct person { char *name; int age }; void

print (struct person p) { printf ("Name=%s age=%d ", p.name, p.age); }

#include #include

struct person { char *name; int age };

void print (struct person p) { printf ("Name=%s age=%d ", p.name, p.age); }

int main () { struct person **list; int i; list = (struct person **) malloc (sizeof(struct person*) * ); for (i=0; i

list [0].name = "R2-D2"; list [0].age = 609; list [1].name = "Optimus Prime"; list [1].age = 2700; list [2].name = "Wall-E"; list [2].age = 210; for (i=0; i HW Exercise 3.7: Add code to your arrayExample3.c to print the start address of each heap block, and make a table in your README to show a memory diagram. You do not need to list addresses on the stack or globals area

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!