I made a function on how to reverse a singly linked list recursively in C.
the function is as below.
struct node * reverseSLL2(struct node *p,struct node
When a non-void function returns without a return statement, it is Undefined Behaviour (UB). Make sure to avoid this.
However, the function still might return something even without using the return statement. For example, on x86 architectures, the function will return whatever is there in the eax register, which will most probably be one of the local variables.