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 |
write a program for odd numbers?
How do I access command-line arguments?
What is the difference between File pointer and Internal Charecter Pointer?
void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We.....Are....Student “ Note: one .=1 Space Output: "We Are Student"
void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?
What is stack in c?
How can I convert a number to a string?
int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }
What is modeling?
int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.