Why is it difficult to store linked list in an array?

Answer Posted /

array can grow dynamically...........

but it is a waste of memory to set them to grow dynamically

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the prototype of printf function?

867


Write about a nested class and mention its use?

824


Write some differences between an external iterator and an internal iterator?

805


What is the use of bit fields in structure declaration?

738


What is the difference between *p++ and (*p)++ ?

1002


What is the history of c++?

729


What is the use of lambda in c++?

764


What is auto type c++?

856


What is #include ctype h in c++?

871


Is arr and &arr are same expression for an array?

805


What are vectors used for in c++?

804


Write a function that swaps the values of two integers, using int* as the argument type?

786


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

3630


What are proxy objects in c++?

880


What is a pointer with example?

880