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 |
How do I read the arrow keys? What about function keys?
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
64/square(4)
What is quick sort in c?
What is the use of extern in c?
What is operator promotion?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
How can I insert or delete a line (or record) in the middle of a file?
how many argument we can pas in in a function
wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
const char * char * const What is the differnce between the above tow?.