Answers

Question and Answer:

  Home  Linux Bash Arithmetic Expressions

⟩ What is the output of this program? If 1) #!/bin/bash 2) a=2 3) b=4 4) let c=a**b 5) echo $c 6) exit 0 Options a) 8 b) 16 c) 32 d) none of the mentioned

b) 16

Explanation:

'**' is the exponentation operator in bash shell.

Output:

root@ubuntu:/home/google#./test.sh

16

root@ubuntu:/home/google#

 194 views

More Questions for you: