Lecture 5 - Arrays (Part 1)
Lecture 5 - Arrays (Part 1)
Askar Khaimuldin
Senior-lecturer
askar.khaimuldin@astanait.edu.kz
Content
• Preface
• Declaration and initialization
• sizeof operator
• The array name
• Conjunction of loops and arrays
• Null-Terminated Strings (char array)
• Sorting (Bubble sort)
Preface
• Array is a data structure of related data items
• Static entity (same size throughout program)
• A set of variables of the same type
• Each element is referred to through a common name
• Specific element is accessed using index