1.

Which of the following is a correct initialization of variables to null strings?(a) x=(b) x=’ ‘(c) x=” “(d) x=, x=’ ‘, x=” “The question was posed to me by my college director while I was bunking the class.I want to ask this question from Command Substitution and Shell Variables topic in chapter The Shell of Unix

Answer» CORRECT option is (d) X=, x=’ ‘, x=” “

The BEST explanation: All shell variables are initialized to NULL strings by a string. While explicit ASSIGNMENT of null strings can be performed with x=’ ‘ or x=” “ or x=


Discussion

No Comment Found

Related InterviewSolutions