1.

The complete set of positional parameters is stored in ______ as a single string.(a) $n(b) $#(c) $*(d) $$This question was posed to me in an online interview.My doubt is from Shell Programming using read Command and Command Line Arguments in section Essential Shell Programming of Unix

Answer»

The correct ANSWER is (C) $*

The EXPLANATION: There are some special parameters USED by the shell. One of which is $*, which stores the complete set of POSITIONAL parameters as a single string.



Discussion

No Comment Found

Related InterviewSolutions