Tag: switch

shape
shape
shape
shape
shape
shape
shape
shape
Standard

C Switch Case – How to use

You will learn how to use the switch command in C to execute a block of code based on a multiple choice selection. Below is an example of a MENU using the switch command: switch (menu) { case 1: printf(“Voce escolheu a opcao 1”); break; case 2: printf(“Voce escolheu a opcao 2”); break; default: printf(“Voce

Latest news

Latest news directly from our blog.