Array in C Programming Language - tccicomputercoaching.com

Page 1

Array in C Programming Language tccicomputercoaching.com What is Array? Array is collection of more than one element of same type at a same memory location.

Declaration Syntax: 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. rn[0]

rn[1]

0

1

rn[2]

2

rn[3]

3

For Example , if we want to store 4 student rollno at a same location then array has been declared like this:


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.