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
What is struct node in c?
Write a program with dynamically allocation of variable.
What's the right way to use errno?
Why is sprintf unsafe?
Why we use stdio h in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is an expression?
Suggesting that there can be 62 seconds in a minute?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is wrong with this program statement? void = 10;
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is a constant?
How can I direct output to the printer?
What is array of pointers to string?