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


Please Help Members By Posting Answers For Below Questions

What are the various types of control structures in programming?

628


Explain about the constants which help in debugging?

855


Explain the difference between null pointer and void pointer.

671


What is const and volatile in c?

566


What is the use of parallelize in spark?

576






What is hash table in c?

574


What are the benefits of c language?

645


write a program to display all prime numbers

1456


What is a rvalue?

749


What is cohesion and coupling in c?

591


Explain how can you tell whether two strings are the same?

582


What is header file definition?

567


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1451


Simplify the program segment if X = B then C ← true else C ← false

2585


Explain can the sizeof operator be used to tell the size of an array passed to a function?

597