Home > OS >  linux
linux

Time:10-08

Q5. What is the output of this program? The output of this program is what? 5 marks
#!/bin/bash
A=10; B=20
C=$((+ + a))
Let a=c + a
Echo $a
The exit 0

CodePudding user response:

The output is 22

CodePudding user response:

reference 1st floor Garenliu response:
output is 22

Why is that? What do you think x++ and + + x? x

CodePudding user response:

The output is 22

CodePudding user response:

X++ is first to take part in the program run X in plus one, is X + + X first to add a prior to operation of the program