can i know the source code for reversing a linked list with
out using a temporary variable?
Answer Posted / vishnu948923
struct node* reverse(struct node* first)
{
struct node* cur, temp;
cur=NULL;
while(first!=NULL)
{
temp=first;
first=first->link;
temp->link=cur;
cur=temp;
}
return cur;
}
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Is c is a middle level language?
Why header file is used in c?
What are pointers? What are stacks and queues?
What are the key features in c programming language?
Do you know the difference between exit() and _exit() function in c?
What is the g value paradox?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is string concatenation in c?
What's the right way to use errno?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What are the 5 elements of structure?
How was c created?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Explain what is the difference between text files and binary files?