1.

C shell uses which command for assigning values to variables?(a) =(b) set(c) unset(d) $The question was posed to me by my college professor while I was bunking the class.This interesting question is from Command Substitution and Shell Variables topic in division The Shell of Unix

Answer»

Right choice is (b) set

For explanation I would say: The C shell USES the set statement to set VARIABLES. There is a restriction that there either has to be whitespace on both sides of = or none at all. For EXAMPLE, for assigning a value to a variable named count, USE the following command:



Discussion

No Comment Found

Related InterviewSolutions