What is Array?
Array is collection of more than one element of same type at a same memory location.
Data Type arrayname[size];
Here , size represent number elements stored in Array. This size is maximum
so, user can enter equal or less elements but nor more than elements.
All Elements store in sequence in memory. An each element contain position
which always start from zero.
0 1 2 3
For Example , if we want to store 4 student rollno at a same location then
array has been declared like this:
Variable cannot store more than one data at a time. Array removes this
limit of variable.
Array can store an elements of same type only.
To enter data in given an array:
To display data in given an array:
We can find maximum element , minimum element , sort the array , search an element from an Array.
To learn coding in C Language at TCCI
Call @ 9825618292
Visit @ http://tccicomputercoaching.com/