What is meaning of array of integers .
In arrays or pointers
@Nikhil-Aggarwal-2320066674901389
An array is a group of variables of the same data type having same name.
Take this example.
Say I had to say 5 different values for something in program.
I could declare 5 seperate variables like
int a, b , c , d , e ;
cin >> a >> b >> c >> d >> e;
Now say I had to do the same thing for a 100 or a 1000 integers. It would be a tedious process to declare and handle such variables.
Instead we declare an array like
int arr[100].
I have declared it with the name “arr”. You could pick any name. The size of this array is 100.
So a 100 integers are now there in arr array.
I can access them like
cout << arr[0] << arr[1] << arr[2] ;
and so on.
Note that the indexing begins with 0 and not 1. So the last element of the array would be present at 99th index and not 100th .