What is a linked list?

Answer Posted / purba phalguni mishra

" Linked List is a collection of data elements consisting
of nodes", basically two parts:-
1. INFO part- contains the information/value of data items.
2.LINK part- keeps the address of the adjacent node,i.e,
co-relating notes.

The basic application,i.e, the linear arrangement of data
items gives the fundamental idea of array.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

1664


What is a function in oop?

635


can inline function declare in private part of class?

3665


What is polymorphism programming?

607


What are the benefits of interface?

584






What is multilevel inheritance in oop?

558


Why interface is used?

555


What are the types of abstraction?

562


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2580


What is multilevel inheritance?

727


What is inheritance in oop?

606


What is new keyword in oops?

593


What are the data types in oop?

610


Can bst contain duplicates?

678


What is the significance of classes in oop?

592