Int main(void) {
fruit_t myfruit;
myfruit.name = banana;
myfruit.size = 5.2;
myfruit = getbigger(myfruit, 3.4);
printf("this fruit is %.2f grams.\n", myfruit.size);
return 0;
}
please tell me the output: ?
2. for the following code:
enum fruit_tag {
blueberry,
banana,
pineapple,
watermelon
};
typedef enum fruit_tag fruit_t;
void printfruit(fruit_t myfruit) {
switch(myfruit) {
case blueberry:
printf("a blueberry");
break;
case banana:
printf("a banana");
break;
case pineapple:
printf("a pineapple");
break;
case watermelon:
printf("a watermelon");
break;
}
}
Answers
Answered by
0
Answer:
tex
banf
(/stredi
myfruit.size = 5.2;
myfruit = getbigger(myfruit, 3.4);
printf("this fruit is %.2f grams.\n", myfruit.size);
return 0;
}
please tell me the output: ?
2. for the following code:
enum fruit_tag {
blueberry,
banana,
pineapple,
watermelon
};
typedef enum fruit_tag fruit_t;
void printfruit(fruit_t myfruit) {
switch(myfruit) {
case blueberry:
printf("a blueberry");
break;
case banana:
printf("a banana");
break;
case pineapple:
printf("a pineapple");
break;
case watermelon:
printf("a watermelon");
break;
}
}
Similar questions
Social Sciences,
5 months ago
Hindi,
5 months ago
Math,
10 months ago
Math,
10 months ago
Biology,
1 year ago