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

Answer Posted / zhangwy

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

List->Next->Next = List;
List->next = NULL ;

}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1207


Explain what is wrong with this program statement? Void = 10;

757


How a string is stored in c?

575


Write a program to find the biggest number of three numbers in c?

584


What is the purpose of macro in C language?

655






Explain the process of converting a Tree into a Binary Tree.

2094


What is a program?

648


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2179


What is register variable in c language?

594


What is bss in c?

594


What is union in c?

627


What are the benefits of organizational structure?

564


Why string is used in c?

572


Explain how are portions of a program disabled in demo versions?

645


Can 'this' pointer by used in the constructor?

608