1.

The advantage of ‘switch’ statement over ‘if’ is that it leads to more structured program.(a) True(b) FalseThe question was posed to me during an interview.The doubt is from Switch Case topic in chapter Syntax Directed Definition and Translations of Compiler

Answer»

Correct answer is (a) True

For explanation I would SAY: Switch is more convenient to use as it avoids confusion in CASE of more NESTED STRUCTURE.



Discussion

No Comment Found

Related InterviewSolutions