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
When we use void main and int main?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is the difference between ++a and a++?
What are the types of pointers in c?
Is main is user defined function?
How can I prevent another program from modifying part of a file that I am modifying?
What is memory leak in c?
What is character constants?
What is a lookup table in c?
Describe how arrays can be passed to a user defined function
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Why #include is used in c language?
What is integer constants?
Can 'this' pointer by used in the constructor?
What is the best way of making my program efficient?