The following function reverse() is supposed to reverse a singly linked list. There is one line missing

Question:

The following function reverse() is supposed to reverse a singly linked list. There is one line missing at the end of the function.

image text in transcribed

A. *head_ref = prev;
B. *head_ref = current;
C. *head_ref = next;
D. *head_ref = NULL

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: