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
how could explain about job profile
What is the difference between union and anonymous union?
How do you search data in a data file using random access method?
How does struct work in c?
How can I read a binary data file properly?
What is the difference between NULL and NUL?
in linking some of os executables are linking name some of them
how to write optimum code to divide a 50 digit number with a 25 digit number??
Explain data types & how many data types supported by c?
How can I change the size of the dynamically allocated array?
Explain pointer. What are function pointers in C?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Define and explain about ! Operator?
What are the types of c language?
Are pointers integers in c?