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 are the data types present in c?
Where we use clrscr in c?
write a program to copy the string using switch case?
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
what value is returned to operating system after program execution?
how to introdu5ce my self in serco
Explain how can I read and write comma-delimited text?
What are called c variables?
why r u join this company? give solid resons.
16 Answers IBM, Infosys, TCS,
Why is structure padding done in c?
why program counter is 16 bit?