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

c programming of binary addition of two binary numbers

4 Answers  


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.

1 Answers  


What is the difference between NULL and NUL?

0 Answers   Aspire, Infogain,


In how much time you will write this c program? Prime nos from 1 to 1000

2 Answers   TCS,






What are the types of pointers in c?

0 Answers  


how we do lcm of two no using c simple if while or for statement

1 Answers  


Explain what is the purpose of "extern" keyword in a function declaration?

0 Answers  


What are the features of the c language?

0 Answers  


What is the best style for code layout in c?

0 Answers  


How can I insert or delete a line (or record) in the middle of a file?

0 Answers  


Why is c so powerful?

0 Answers  


Categories