Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed what is a array

+5 votes
asked Sep 14, 2021 by akriti raj (270 points)
closed Oct 7, 2021 by Admin
closed with the note: answered

2 Answers

0 votes
answered Sep 14, 2021 by sunil guleria (140 points)
dictionary meaning of array is collection of similar objects or items.

so here array is a technique to reserve number of memory locations to store multiple values of same type.

Array is collection of memory blocks to store multiple values of same type

like int arr[5];

here arr is array;

memory locations in array are represented by index number e.g.

now we can store five integer values into the arr.
+1 vote
answered Sep 14, 2021 by Aditya Tiwari (210 points)

An array is a data structure, which can store a fixed-size collection of elements of the same data type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...