Consider the C node fragment given below:
Which of the following true about above code if input is given as linked list of n-element in which for each node memory is created in heap area?
A. Compiles successfully but execution may result in dangling pointer.
B. Compiles successfully but execution may result in memory leak problem.
C. It will produce compile time error.
D. Compilation error because p = = NULL not present after free (p) in else part.
I think answer should be C. Because the return type is int node*
Can someone please confirm.