Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is null equal to 0 in sql?

1145


What is the general form of function in c?

1020


How will you write a code for accessing the length of an array without assigning it to another variable?

1039


How do you define a string?

1101


I came across some code that puts a (void) cast before each call to printf. Why?

1215


What is the size of structure in c?

1147


What should malloc() do?

1164


How will you divide two numbers in a MACRO?

1128


Write a progarm to find the length of string using switch case?

2061


Is there any data type in c with variable size?

1094


Difference between linking and loading?

1094


What is the difference between char array and char pointer?

1043


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...

10195


What is the difference between void main and main in c?

1151


Explain about C function prototype?

1080