DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
sum of array
int
sumofarr
(
int
*
a
,
int n
)
{
if
(
n
>
1
)
return
a
[
n
-
1
]
+
sumofarr
(
a
,
n
-
1
)
;
return
a
[
0
]
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sum
#array
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit