For the following code, reverse engineer all the necessary structure definitions involved. char name[10] = "ceramic"; st
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
For the following code, reverse engineer all the necessary structure definitions involved. char name[10] = "ceramic"; st
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; ----
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!