What is the output of this program?
#!/bin/sh
var="Example"
demo_function() {
var="Linux"
echo $var
}
demo_function
exit 0
#!/bin/sh
var="Example"
demo_function() {
var="Linux"
echo $var
}
demo_function
exit 0A. Example
B. Linux
C. Command not found
D. None of the mentioned
Answer: Option B

Join The Discussion