Bash Scripting - Functions
What will be the output of this script?
add() {
echo $(( $1 + $2 ))
}
add 3 7add() {
echo $(( $1 + $2 ))
}
add 3 7add sums its two arguments using arithmetic expansion $(( )).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions