how can u create a doubly linked list with out using
pointers?

Answers were Sorted based on User's Feedback



how can u create a doubly linked list with out using pointers?..

Answer / ana

by multiple or single array

multiple: 3 arrays(size n) . first array for next, second
for keys and third for prev

single: 3*n size array, elements by triplets - next, key,
prev

Is This Answer Correct ?    5 Yes 0 No

how can u create a doubly linked list with out using pointers?..

Answer / shanmugavalli

Through STL List class

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More C++ General Interview Questions

Difference between declaration and definition of a variable.

0 Answers  


What is Object Oriented programming.what is the difference between C++ and C?

8 Answers   Infosys,


There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.

2 Answers   Nagarro,


What does #define mean in c++?

0 Answers  


Explain the uses oof nested class?

0 Answers  


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

0 Answers  


Is turbo c++ free?

0 Answers  


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

0 Answers  


Do class declarations end with a semicolon?

0 Answers  


What is c++ array?

0 Answers  


Can a constructor be private?

0 Answers  


difference between macro and function?

3 Answers  


Categories