Unit1 Array
Unit1 Array
Basics of array
Array in Data Structure
• Arrays are defined as the collection of similar types of data items
stored at contiguous memory locations.
• It is one of the simplest data structures where each data element can
be randomly accessed by using its index number.
• In C programming, they are the derived data types that can store the
primitive type of data such as int, char, double, float, etc.
• For example, if we want to store the marks of a student in 6 subjects,
then we don't need to define a different variable for the marks in
different subjects.
• Instead, we can define an array that can store the marks in each
subject at the contiguous memory locations.
3 dimensional array
output
• Ref Video Links
• https://youtu.be/3cU__spdMIw
• https://youtu.be/3cU__spdMIw