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

What is the auto keyword good for?

0 Answers  


What is action and transformation in spark?

0 Answers  


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,


what is structuer?

4 Answers   LG Soft, Wipro,


the operator for exponencation is a.** b.^ c.% d.not available

5 Answers   TCS,


What is zero based addressing?

0 Answers  


Why doesnt this code work?

0 Answers  


Why doesnt long int work?

0 Answers  


Can you assign a different address to an array tag?

0 Answers  


Explain a file operation in C with an example.

0 Answers   Amdocs,


What is hashing in c language?

0 Answers  


How do you convert strings to numbers in C?

0 Answers  


Categories