Write a program to maintain a singly linked list having the
following functions:
a) Creation of the list
b) Displaying the list.
c) Swap all nodes at consecutive even odd positions.
E.g.: The nodes at position 1 should be swapped with node
2, node 3 with node 4 and so on.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Engineering AllOther Interview Questions

Why should we use white box testing

0 Answers  


which is your dream company and why?

2 Answers   Honeywell, IBM,


what is test initiation criteria in software testing

2 Answers   CybAge, Seed Infotech,


write an algorithm in O(n) time for finding the kth smaalest element form an array of n elements , where n and k are entered by user

0 Answers  


10. Write a program in ā€˜Cā€™ language that will perform the following operation on double link list. Each node of this list contains the address of previous as well as next node. The previous pointer of first node & next pointer of last node should contain null. 1. Creation of list with as many records as user want 2. Search a node in the list 3. Deletion at last position 4. Display 5. Exit Create separate functions for each operation. The create () will be used to create the list. It should accept no argument & return the address of the starting node. Search() will search a node in the list. It receives rollno as argument & return that node if found otherwise return null. The delete () function will delete the last node. It does not receive any argument & return structure type value at last position. The starting node of the double list must be declared as external pointer variable. Each element of double link list will contain the following information Roll No, Std Name, Course. Use do-while loop & switch case for generating the above menu. The format of the output should is given below: S.No. Roll No. Student Name Course 1 cse01 Anil Singh B.Tech

0 Answers  






Suppose you want to form a conceptual model of UML.What elements would you require for this purpose?

0 Answers  


Is Diesel staorage tank ( 800 litres) cleaning procedure is available with any body

0 Answers  


what is PPM,CM & EM in FM company

1 Answers  


Briefly describe an experience of yours that illustrates your ability to clearly articulate and explain technical issues in a nontechnical manner

0 Answers  


what is instance in oops?

2 Answers  


need tcs questn papers from 2007 to 2009 plzzzmail to 9015.rama@gmail.com its urgent

0 Answers  


how many tranformations are there in informatica?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)