Question: Given this snippet of code, identify the recursive case: void deleteList(struct contact* node) { if (node != NULL) { deleteList(node->next); free(node); } else return; }
Given this snippet of code, identify the recursive case:
void deleteList(struct contact* node)
{
if (node != NULL) {
deleteList(node->next);
free(node);
} else
return;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
