Bash Scripting - Quoting and Expansion
Which of the following is the correct syntax to multiply two variables
a and b using arithmetic expansion in bash?a and b using arithmetic expansion in bash?$(( expression )) to evaluate math expressions.$((a * b)). result=$(a * b) uses command substitution, which is incorrect. result=$[a * b] uses deprecated syntax. result=a * b assigns a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions