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
How main function is called in c?
What is adt in c programming?
What is a ternary operator in c?
What is the purpose of the preprocessor directive error?
How are variables declared in c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
explain what is fifo?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
program to convert a integer to string in c language'
Why is main function so important?
Where is volatile variable stored?
How can this be legal c?
Can we change the value of #define in c?
What is getch() function?
What are pointers? Why are they used?