Kizspy | Question: 26
(Choose 1 answer)
Consider the following program.#include <stdio.h>
void announce(int i)
{
switch(i)
{
case 0:
printf("\nYou got\n...\nnothing\nGood luck next time!\n");break;
case 1:
printf("\nYou got\n...\na beer!\nCheers!\n");break;
case 2:
printf("\nYou got\n...\na car!\nGet your license!\n");
break;case 3:
printf("\nYou got\n...\na tour around the world in a year! \nSee you next year!\n");break:default:
break;
}
}
void draw5times(int arr[])
{ } printf("Input 5 integers:\n");scanf("%d %d %d %d %d",&arr[0], &arr[1],&arr[2], &arr[3],&arr[4]);
main(){
int arr[5];draw5times(arr);for (int i = 1; i < 5; ++i){
announce((arr[i] + i) % 4);
}
} If the user inputs:
54321 What is the output printed to the screen?
A. You got
a beer!Cheers!
FUC