Answers

Question and Answer:

  Home  Linux Bash Arithmetic Expressions

⟩ What is the output of this program? #!/bin/bash a=1; b=2; c=3 d=$(( ++a**b*c++ + a )) echo $d exit 0 a) 14 b) 12 c) program will generate an error message d) none of the mentioned

a) 14

The operators in decreasing order of precedence are ++, **, *, +.

 161 views

More Questions for you: