Bash Scripting - Arrays
Consider the Bash array declaration
animals=(cat dog rabbit). What will be the output of echo ${animals[2]}?animals=(cat dog rabbit). What will be the output of echo ${animals[2]}?animals=(cat dog rabbit), index 0 is 'cat', index 1 is 'dog', and index 2 is 'rabbit'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions