Skip to content

ParameshwarGani/Introduction-to-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Introduction-to-array


Array:- An array is a data structure containing a collection of values or variables.The simplest type of array is a linear array or one-dimensional array.

Sum of an array:- is defined as the sum of all elements present in the array.

Algorithm for the program:-

1.Take n,a variable that stores the number of elements of the array.

2.Create an array of size n

3.Iterate via for loop to take array elements as input and print them.

4.Iterate via for loop to access each elements of array to get the sum of all the elements.

5.Print the sum of an array

To know more about array, refer to the following website

https://www.programiz.com/c-programming/c-arrays

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages