K reverse linked list


What is the errror in this code?

@aditi2512201012019
don’t use final as a variable name it is actually a keyword in C++
Also there is mistake in your knod() function, somewhere it is trying to access Null node, please go through it once, dry run it or if you cant find the error explain your code to me.