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
Is there anything like an ifdef for typedefs?
What is the use of pragma in embedded c?
What is the difference between c &c++?
What the advantages of using Unions?
Why header file is used in c?
Is main an identifier in c?
Can we change the value of #define in c?
#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); }
Explain 'bit masking'?
What is array in c with example?
What is an array in c?
How can I discover how many arguments a function was actually called with?
How are 16- and 32-bit numbers stored?
Explain what happens if you free a pointer twice?
Can we increase size of array in c?