Examveda

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: Option D


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux