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
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
How do you use a 'Local Block'?
Explain how can I remove the trailing spaces from a string?
What is dynamic dispatch in c++?
what is the difference between class and unio?
What is 1f in c?
What is a 'null pointer assignment' error?
What is the difference between array and structure in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Write a program to swap two numbers without using the third variable?
What is the purpose of type declarations?
Is it better to bitshift a value than to multiply by 2?
What are the difference between a free-standing and a hosted environment?
What is #ifdef ? What is its application?
What does %c do in c?