Cognizant interview question

What does switch command do in c programing