Vidyalelo
Computer Science · Q655

Linux

Engineering and GATE · Computer Science · question 655

Q655

What is the output of this program? #!/bin/bash function hello_function1 echo "This is first function" hello_function2() echo "This is second function" hello_function1 hello_function2 exit 0

A.
This is the first function
B.
This is the second function
C.
This is the first function
This is the second function
Answer
D.
program will generate error because first function definition is not correct

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board