Answer Posted / 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 |
Post New Answer View All Answers
What is array in c with example?
What are variables c?
What are reserved words with a programming language?
What is scope rule of function in c?
When c language was developed?
what is different between auto and local static? why should we use local static?
Explain the priority queues?
What is extern c used for?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is calloc() function?
What is an endless loop?
When we use void main and int main?
differentiate built-in functions and user – defined functions.
What is the explanation for modular programming?
Which control loop is recommended if you have to execute set of statements for fixed number of times?