What's the difference between a linked list and an array?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / bsn.teja
answers 1,2,3,4,5,11,13 gives the entire difference between
array and linked list.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / n.muthukumar
A linked list consists of data nodes, each pointing to the
next in the list. An array consists of contiguous chunks
memory of predetermined size.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ashish chauhan
A linked list consists of data nodes, each pointing to the
next in the list. An array consists of contiguous chunks
memory of predetermined size
| Is This Answer Correct ? | 4 Yes | 4 No |
What are the loops in c?
What is ambagious result in C? explain with an example.
What is the sizeof () operator?
What are macros in C?
Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }
Is main an identifier in c?
Explain how are 16- and 32-bit numbers stored?
What is the use of f in c?
In a switch statement, what will happen if a break statement is omitted?
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a
What are the languages are portable and platform independent?Why they are like that?
What are type modifiers in c?