The following C structure has been defined struct int_node int value: struct int
ID: 3600243 • Letter: T
Question
The following C structure has been defined struct int_node int value: struct int_node *next; Hi Write a function void print int list that is given a single argument that is a pointer to a struct int node. The function should print the values in the linked of integers indicated by that pointer to the standard output and continue to follow the linked list until a NULL pointer is found. Each integer should be printed as a decimal number, one entry per line. You should not provide the main0 function-only implement the print_ int list(struct int node "ptr) function as described aboveExplanation / Answer
void print_int_list(struct int_node *ptr)
{
struct Node *temp = ptr;
while(temp != NULL)
{
printf("%d ", temp->value);
temp = temp->next;
}
}