Question: Briefly describe what this segment of code does. headObj= (employee*) malloc(sizeof(employee)); EmpNode_Create(headObj); last0bj = headObj; for (i = 1; i < numNodes; i++) {
Briefly describe what this segment of code does. headObj= (employee*) malloc(sizeof(employee)); EmpNode_Create(headObj); last0bj = headObj; for (i = 1; i < numNodes; i++) { currObj = (employee*) EmpNode_Create(currObj); malloc(sizeof(employee)); lastObj->next = currObj; last0bj = currObj;
Step by Step Solution
There are 3 Steps involved in it
This segment of code appears to be written in C and involves the creation and linking of a linked list that contains nodes representing employees Here ... View full answer
Get step-by-step solutions from verified subject matter experts
