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 |
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}
shorting algorithmS
What is echo in c programming?
Which of these statements are false w.r.t File Functions? i)fputs() ii)fdopen() iii)fgetpos() iv)ferror() A)ii B)i,ii C)iii D)iv
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Explain how do you print only part of a string?
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38
write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986
How do you override a defined macro?