bash-3.00$ cat arr.bash
#!/bin/bash
declare -a myarray
myarray[2]="two"
myarray[5]="five"
echo ${#myarray[*]}
echo ${#myarray[@]}
bash-3.00$ ./arr.bash
2
2
both are giving number of elements of array. So what is difference between the two?