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


Please Help Members By Posting Answers For Below Questions

Is there anything like an ifdef for typedefs?

711


What is the use of pragma in embedded c?

597


What is the difference between c &c++?

654


What the advantages of using Unions?

680


Why header file is used in c?

585






Is main an identifier in c?

610


Can we change the value of #define in c?

591


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

729


Explain 'bit masking'?

662


What is array in c with example?

626


What is an array in c?

600


How can I discover how many arguments a function was actually called with?

642


How are 16- and 32-bit numbers stored?

732


Explain what happens if you free a pointer twice?

620


Can we increase size of array in c?

549