Question d’entretien chez Cognizant

What does switch command do in c programing