Question from the Bash - Fundamentals test

Write a bash script that returns the sum of all the elements of an array.

Medium

What does the following script return?

array=([1]=1, 4, [8]=3)
echo ${!array[*]}
echo ${array[*]}
Author: titouan lecampStatus: PublishedQuestion passed 20 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!