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
Explain enumerated types.
What is a far pointer in c?
Is null valid for pointers to functions?
What is pivot in c?
Explain what does a function declared as pascal do differently?
What is function prototype in c language?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is string in c language?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What does it mean when the linker says that _end is undefined?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is the difference between call by value and call by reference in c?
Explain how do you use a pointer to a function?
How can you access memory located at a certain address?
What is character set?