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 |
explain what is an endless loop?
what is difference between getchar,putchar functions and printf and scanf function? does putchar show output only when input given to it
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
in iso what are the common technological language?
Write a program to reverse a given number in c language?
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
what is the difference between class and unio?
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
Toggle nth bit in a given integer - num
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
How do you use a 'Local Block'?