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 a way to jump out of a function or functions?

841


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1889


main() { printf("hello"); fork(); }

952


What are local static variables?

844


Write a program to print ASCII code for a given digit.

890


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

756


Differentiate between the expression “++a” and “a++”?

982


what is different between auto and local static? why should we use local static?

885


What is the use of linkage in c language?

828


how could explain about job profile

1661


Is main an identifier in c?

847


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

824


What is nested structure?

786


What is exit() function?

771


What is derived datatype in c?

831