Bash Scripting - Arrays
Given the script:
What will be printed?
myarr=(a b c d e)
len=${#myarr[@]}
echo $lenWhat will be printed?
myarr=(a b c d e)
len=${#myarr[@]}
echo $lenlen=${#myarr[@]} stores 5, then echo $len prints 5.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions