Vidyalelo
Computer Science · Q711

Linux

Engineering and GATE · Computer Science · question 711

Q711

What is the output of this program? #!/bin/bash var[1]=hello_1 var[2]=hello_2 var[3]=hello_3 echo var[*] exit 0

A.
hello_1
B.
hello_2
C.
hello_3
D.
hello_1 hello_2 hello_3
Answer

Answer: Option D

Solution

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