S Stasenndb New member Sep 19, 2021 #1 What is the output of this program? Code: #!/bin/bash a=10 b=$(( $a<0&&$a<100 )) echo $b exit 0 A. 10 B. 0 C. 1 D. none of the mentioned
What is the output of this program? Code: #!/bin/bash a=10 b=$(( $a<0&&$a<100 )) echo $b exit 0 A. 10 B. 0 C. 1 D. none of the mentioned
T Tam ca New member Sep 19, 2021 #2 Answer: b Explanation: The condition '$a<0' is false so logical and operator provides the output 0. Output: root@ubuntu:/home/123hoidap# ./test.sh 0 root@ubuntu:/home/123hoidap# Upvote 0 Downvote
Answer: b Explanation: The condition '$a<0' is false so logical and operator provides the output 0. Output: root@ubuntu:/home/123hoidap# ./test.sh 0 root@ubuntu:/home/123hoidap#