can i know the source code for reversing a linked list with
out using a temporary variable?

Answer Posted / fazil

void Func( struct Node* List )
{
if( List && List->Next )
{
Func( List->Next );

List->Next->Next = List;
}
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are dangling pointers in c?

650


Which programming language is best for getting job 2020?

613


Not all reserved words are written in lowercase. TRUE or FALSE?

725


How can I remove the leading spaces from a string?

639


Differentiate between a structure and a union.

770






What is the advantage of c?

613


Explain what is wrong with this program statement?

626


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

657


Explain how do you list files in a directory?

620


What are two dimensional arrays alternatively called as?

671


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2457


Which is best linux os?

572


What are the 32 keywords in c?

639


What is cohesion in c?

545


How can you increase the allowable number of simultaneously open files?

601