Skip to main content

Introduction to Arrays

Body

Introduction to Arrays

In this part you will learn: 1. Arrays 2. Sorting using arrays 3. Constants 4. Showing output In this tutorial I will teach you how to use arrays. What is an Array ? An array is a set of variables which you can declare in a single statement. For example if you want to make a result calculating program you need to declare the total number of students first. So instead of declaring student1, student2 etc you can write int students[40]; in this way we declared 40 variables in a single statement. Sorting the array in descending order Basic Step: Open Dev C

Add new comment

Code File
File attachments
Screenshot