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 are the types of assignment statements?
What is the c language function prototype?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What is the difference between text and binary i/o?
What is #include cctype?
What is an lvalue in c?
What is variable initialization and why is it important?
Explain what is the most efficient way to store flag values?
What is a program flowchart and explain how does it help in writing a program?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Combinations of fibanocci prime series
What is the difference between c and python?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is indirection?
Write a program to reverse a string.