What is a C array and illustrate the how is it different from a list.
Answer Posted / rutuja pawar
Suppose,
int arr[5]={10,20,30,40,50};
I want to add value at index first 60,so array will change like that
arr[5]={10,60,20,30,40,50};
for this output I have to shift the array element.
but in List I can insert directly and delete directly.
that means:
1) In Array: Insertion and deletion is not faster , but Accessing time is less
2)In List: Insertion and deletion is faster but accessing time is more.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is meant by keywords in c?
What is array in c with example?
Is a house a mass structure?
How important is structure in life?
What is a spanning Tree?
write a program to create a sparse matrix using dynamic memory allocation.
Which is the best website to learn c programming?
What is string function in c?
What is fflush() function?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What are different types of variables in c?
How can I invoke another program or command and trap its output?
What is dynamic dispatch in c++?