Bash Scripting - Arrays
In bash scripting, which expression correctly gives the number of elements in an array named
my_array?my_array?${#array[@]} returns the count of elements in the array.${#array} returns the length of the first element, not the number of elements.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions