Analise o código a seguir:
#include
main() {
int n;
printf("\n Digite um número:...
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.
Answers: 3
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
Computers and Technology, 24.06.2019 17:00
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
Computers and Technology, 25.06.2019 09:50
The mips architecture has a register set that consists of 32-bit registers. is it possible to design a computer architecture without a register set? if so, briefly describe the architecture, including the instruction set. what are advantages and disadvantages of this architecture over the mips architecture?
Answers: 3
Computers and Technology, 25.06.2019 10:10
Suppose you and your friend live on the same street d miles away from each other. between your house and your friend’s house there are n motorized scooters positioned at distances x1, x2, . . , xn miles from your house towards your friend’s house. each scooter has a battery that may or may not be fully charged. let’s say that the scooters can take you distances d1, d2, . . , dn miles down the road. each scooter also has a price p1, p2, . . , pn that it takes to activate. any time you encounter another scooter, you may take the new scooter and leave your old scooter behind. there is an additional scooter at your house that you start with and it can go distance d0 miles and it is free to activate: p0 = 0. you wish to go to your friend’s house minimizing the total amount of money spent activating the scooters. design a dynamic programming algorithm that returns the minimum cost to get to your friend’s house using scooters x0, . . , xn.
Answers: 1
Mathematics, 27.02.2021 04:50
Social Studies, 27.02.2021 04:50
Mathematics, 27.02.2021 04:50
Mathematics, 27.02.2021 04:50
History, 27.02.2021 04:50
Mathematics, 27.02.2021 04:50
English, 27.02.2021 04:50
Mathematics, 27.02.2021 04:50
History, 27.02.2021 04:50