create an SINGLE LINKED LISTS and reverse the data in the
lists completely
Answer Posted / akansha sharma
create linklist, with node having DATA which contain
information and NEXT which cointain address of next node.
The pointer START pointing to first node of linklist. PREV
pointer point to first node(where START point) and TEMP
pointer which point at last node(by traversing).
Swap data of TEMP and PREV. Now increment TEMP(TEMP=TEMP-
>NEXT) and decreament TEMP.
Repeat this untill TEMP=PREV
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is null equal to 0 in sql?
What is the general form of function in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
How do you define a string?
I came across some code that puts a (void) cast before each call to printf. Why?
What is the size of structure in c?
What should malloc() do?
How will you divide two numbers in a MACRO?
Write a progarm to find the length of string using switch case?
Is there any data type in c with variable size?
Difference between linking and loading?
What is the difference between char array and char pointer?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is the difference between void main and main in c?
Explain about C function prototype?