Assume that more than nine arguments can be passed to the program.
Using eval, write a program called recho that prints its arguments in reverse order. So
recho one two three
should produce
three two one
# recho - reverse echo using eval
count=$# # number of args given
while [ $count -gt 0 ]
do
eval echo "\$$count \\\c"
count=$(( $count - 1 ))
done
echo "" # end of line
You might also like to view...
COD is an acronym for:
(a) Credit Of Delivery. (b) Cash On Delivery. (c) Consumer Options for Delivery. (d) Credit Online Degree.
Selecting an application from a menu is one method for installing a software program.
Answer the following statement true (T) or false (F)
A brownout has occurred within a building. A technician is repairing a workstation which has a power light, but is not displaying anything on the screen and is not making any sounds during boot up. Which of the following should be used to further troubleshoot the workstation?
A. Loop back plug B. POST card C. Power supply tester D. Multimeter
Employee is a base class and HourlyWorker is a derived class, with a redefined non-virtual print function. Given the following statements, will the output of the two print function calls be identical?
HourlyWorker h; Employee *ePtr = &h; ePtr->print(); ePtr->Employee::print(); a. Yes. b. Yes, if print is a static function. c. No. d. It would depend on the implementation of the print function.