subject

Analise o código a seguir: #include
main() {
int n;
printf("\n Digite um número: ");
scanf("%d", &n);
switch(n) {
case 1: printf("A"); break;
case 3: printf("B");
case 4: printf("C"); break;
default: printf("*");
case 5: printf("D");
}
}

I – Se a opção escolhida for 1, será impresso na tela a letra "A".
II – Se a opção escolhida for 2, será impresso na tela a letra "*" e "D".
III – Se a opção escolhida for 3, será impresso na tela a letra "B" e "C".
IV – Se a opção escolhida for 4, será impresso na tela a letra "C", "*" e"D".

É correto o que se afirma em:

lternativas
Alternativa 1:
II, apenas.

Alternativa 2:
III, apenas.

Alternativa 3:
I e II, apenas.

Alternativa 4:
I, II e III, apenas.

Alternativa 5:
I, II, III e IV.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Answer me pls is an algorithm that has been coded into something that can be run by a machine.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
You know the right answer?
Analise o código a seguir: #include
main() {
int n;
printf("\n Digite um número:...
Questions
Questions on the website: 13722367