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
Describe the difference between = and == symbols in c programming?
How can I change their mode to binary?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Explain the bubble sort algorithm.
Explain what is a const pointer?
When should structures be passed by values or by references?
What are the advantages and disadvantages of pointers?
What is ctrl c called?
show how link list can be used to repersent the following polynomial i) 5x+2
Why are algorithms important in c program?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is structure of c program?
Which is better between malloc and calloc?
What is getch?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.