please some explain an array and.loop | Sololearn: Learn to code for FREE!

-1

please some explain an array and.loop

7/25/2021 6:05:43 AM

`IBRAHIM UMAR UBA

6 Answers

New Answer

+1

An "array" is a collection of data with a staring index as 0 and a "loop" can be used to access each data of the array. (A loop is basically for iterating over something) example: arr[int] = {1,2,3} for(int i=0; i<size(arr); i++) print(arr[i]) output: 1 2 3 (for more technical answer, please google it yourself or grab the course from here)

+1

Nope, just an example pseudocode to give some basic idea. BTW thanks for adding the working C code here. :)

+1

Okay thank you all

0

You all nice and good

0

But i have another question on two detentional arrays and multiple and matrix

0

An array is a collection of homogeneous elements in which data is stored in a contagious location. Types of ARRay: 1-D array 2-D array Multi-Dimensional ARray; Loop: Loop is used in the programming language of repetition of block of statements. Types of Loop: 1)For loop 2)Do while loop 3)while loop 4)Nested loop