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 |
What is hashing in c language?
Can include files be nested? How many levels deep can include files be nested?
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
7 Answers Cadence, JNTU, Zen Technologies,
If the size of int data type is two bytes, what is the range of signed int data type?
Why is c called c?
plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
how to write optimum code to divide a 50 digit number with a 25 digit number??
How do you print only part of a string?
How many types of errors are there in c language? Explain
What is an endless loop?
What is graph in c?