[Solved] C: Variable is uninitialized for linked list
@Sourav Ghosh have already explained what was wrong with your code and also suggested one way to solve it. Here is another way. Instead of passing current and head as variables to be changed inside the function (i.e. as pointer-to-pointer), I would recommend that you use the function return value. In that way you don’t … Read more