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 a way to jump out of a function or functions?
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)
main() { printf("hello"); fork(); }
What are local static variables?
Write a program to print ASCII code for a given digit.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Differentiate between the expression “++a” and “a++”?
what is different between auto and local static? why should we use local static?
What is the use of linkage in c language?
how could explain about job profile
Is main an identifier in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is nested structure?
What is exit() function?
What is derived datatype in c?