Analise o código a seguir:
#include
main() {
int n;
printf("\n Digite um número:...
![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 29.06.2021 21:30, faithrawlins14
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.
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 13:00, ohnoitsabby5431
The documents a system at the end of the design phase, identifies any changes since the beginning of the project, and includes testing and verification of all system requirements and features. functional baseline operational baseline allocated baseline product baseline
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 11:00, tristina20
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
![image](/tpl/images/cats/informatica.png)
Do you know the correct answer?
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 30.07.2019 16:30
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/en.png)
English, 30.07.2019 16:30
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 30.07.2019 16:30