LL-k Reverse(what is the error)
Hello @Saksham12,
-
The run-time error invalid memory access during the execution.
Reason:
The following two statements inside the outer for loop:
firsttemp=firsttemp->address;
secondtemp=secondtemp->address;
Solution Remove these statements.
https://ide.codingblocks.com/s/167224 -
Wrong output:
The logic you have applied is incorrect.
Think of a better approach.
Hope, this would help.