The command “awk ‘{if (“9″>”10”) print “sanfoundry” else print “linux”}'”
A. will print “sanfoundry”
B. will print “linux”
C. will generate syntax error
D. none of the mentioned
Answer:A
The command “awk ‘{if (“9″>”10”) print “sanfoundry” else print “linux”}'”
A. will print “sanfoundry” B. will print “linux” C. will generate syntax error D. none of the mentioned
Explanation:Semicolon is required just before the else statement to parse the statement.