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 |
What is the auto keyword good for?
What is action and transformation in spark?
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?
what is structuer?
the operator for exponencation is a.** b.^ c.% d.not available
What is zero based addressing?
Why doesnt this code work?
Why doesnt long int work?
Can you assign a different address to an array tag?
Explain a file operation in C with an example.
What is hashing in c language?
How do you convert strings to numbers in C?