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
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
How do you list files in a directory?
What is the difference between far and near in c?
What does typedef struct mean?
Explain argument and its types.
Why doesn't C support function overloading?
What is call by reference in functions?
How can I prevent another program from modifying part of a file that I am modifying?
What is clrscr ()?
What is the auto keyword good for?
Is c# a good language?
What is the mean of function?
What is a spanning Tree?
How many identifiers are there in c?
Which is better pointer or array?