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
What are the various types of control structures in programming?
Explain about the constants which help in debugging?
Explain the difference between null pointer and void pointer.
What is const and volatile in c?
What is the use of parallelize in spark?
What is hash table in c?
What are the benefits of c language?
write a program to display all prime numbers
What is a rvalue?
What is cohesion and coupling in c?
Explain how can you tell whether two strings are the same?
What is header file definition?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Simplify the program segment if X = B then C ← true else C ← false
Explain can the sizeof operator be used to tell the size of an array passed to a function?