For the following code, reverse engineer all the necessary structure definitions involved. char name[10] = "ceramic"; st
Posted: Mon May 02, 2022 12:16 pm
For the following code, reverse engineer all the necessary structure definitions involved. char name[10] = "ceramic"; struct capacitor* ptr = malloc(sizeof(struct capacitor)); (*ptr).capacitance = 0.0000001; (*ptr).tolerance = 10.0; strcpy(ptr->material, name); struct Ic* circuit = malloc(sizeof(struct Ic)); circuit->cap = ptr; circuit->material = malloc(sizeof(char) * 10); circuit->inductance = 0.001; circuit->tolerance = 10.0; ----