Programming Basics – Using Arrays in Pseudocodes

Опубликовано: 24 Июль 2026
на канале: Let's Simplify Computers with MrigVats Learning
6,468
48

When creating a program that deals with mathematical calculations, you need various variables to store data in the program. It is very convenient to use variables in a program where you need small amount of data. For example, when you collect data for an individual, you need just a few variables to store relevant data, such as marks in various subjects. However, when it comes to a small group of friends, you need a larger number of variables, which is the multiple of the individuals in the group.

Now, what about all students of a section of a class or the whole class? This would further result in a larger number of variables. Now, when it comes to the school itself or across schools, it would result in a huge number of variables. In such a condition, one of the biggest problems in a program would be to declare each variable name and then remember it in the program.

To ease your task, you can use arrays in most of the programming languages. Arrays are a collection of similar type variables referred with a single name. As a result, when you use an array in a program, you can refer to a cluster of a specified number of variables with a single name. Now, in a program, if you need to store marks of six subjects for multiple students, you just need to create six groups of variables or arrays and use these in the program while referring these just with the array names.