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

-
Notifications
You must be signed in to change notification settings - Fork 0
ParameshwarGani/Introduction-to-array
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published