What is a C array and illustrate the how is it different from a list.



What is a C array and illustrate the how is it different from a list...

Answer / 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

More C Interview Questions

how write a addtion of two single dimensional array using of pointer in c language?

3 Answers   DRDO,


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

0 Answers  


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

0 Answers   GrapeCity,


being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?

1 Answers   TCS,


What does the c preprocessor do?

0 Answers  






Is it possible to create recycle bin in mobiles?

2 Answers  


What extern c means?

0 Answers  


What is the most efficient way to store flag values?

0 Answers  


How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?

1 Answers  


What is the argument of a function in c?

0 Answers  


Is c dynamically typed?

0 Answers  


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

0 Answers   Reliance,


Categories