why it is showing segmentation fault
Llk reverse-linked list
hi @abhinavssr2003_eab0717682969e5c try
4
2
1 2 3 4
do a dry run for this (you are not handling pointers properly)
refer https://www.geeksforgeeks.org/reverse-a-list-in-groups-of-given-size/
I have tried to modify it but still it is showing error idk why
sir i k it’s not running but i am not getting it in code…will you update it nd tell me my mistake in comments
u may have not handled the pointers properly buddy do dry run for the eg once u will get where u r missing
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.