what is an array
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anusha
an array is a continous memory of same data type.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / j j ramesh
it is the ordered collection of same type of variable.
accessed by index value range starts from 0
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mukul garg
an array is a collectiom of similar data types .an array
index always stsrt from zero if the size of array is n then
it can store n elements .
int a[5]={1,2,3,4,5};
| Is This Answer Correct ? | 1 Yes | 1 No |
How can I read/write structures from/to data files?
Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?
Is it valid to address one element beyond the end of an array?
C program to find all possible outcomes of a dice?
print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,getchar or putchar
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
What is variable in c with example?
What is pragma c?
C program to perform stack operation using singly linked list
What is assignment operator?
What is the advantage of c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }