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
Why functions are used in c?
What is #line used for?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
in iso what are the common technological language?
What is static function in c?
What is 02d in c?
Can a pointer point to null?
How was c created?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What are the advantages and disadvantages of pointers?
Explain how can you restore a redirected standard stream?
What are identifiers and keywords in c?
Why main function is special give two reasons?
What is pragma c?
What does c in a circle mean?