What's the difference between a linked list and an array?

Answer Posted / amneh tanbouz

Link list data is not stored in a contiguous memory, while
an array is a contiguous block of memory that is set aside
to store items of a single data type. also Linked list use
only the amount of memory required to store the data. An
array grabs a block of memory but may not use all of it for
actual storage data.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

817


What is the right way to use errno?

625


Does c have function or method?

596


What is a list in c?

623


Why & is used in scanf in c?

629






What is identifiers in c with examples?

680


What is the size of a union variable?

604


Explain a pre-processor and its advantages.

636


Are the variables argc and argv are local to main?

793


When would you use a pointer to a function?

591


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

983


How can I recover the file name given an open stream?

556


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2686


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2176


Can we compile a program without main() function?

637