(OnlineGDB) 1. Please read and run the following code and answer the questions.#include <stdio.h>int main(void) {int a;char *s;int v0 = 4, v1 = 5, v2 = 6, v3 = 1, v4 = 2;printf("Exercise 1:\n====================\n");switch(v0) {case 0: printf("Hello October\n"); break;case 1: printf("Go Kean!\n"); break;case 2: printf("Academic Building Center \n"); break;case 3: printf("UNION \n"); break;case 4: printf("Go ");case 5: printf("Kean! \n");default: printf("Have a great semester! \n"); break;}for(a=5; a<v1; a++) {printf("Kean");}printf("\n");if (v2 == 6) {s = "Go";}else {s = "Hello";}if(v3 != v4) {printf("%s Kean!\n",s);} else {printf("%s Computer Science!\n",s);}return 0;} What is the output of the program? Please explain why.
(OnlineGDB)
1. Please read and run the following code and answer the questions.
#include <stdio.h>
int main(void) {
int a;
char *s;
int v0 = 4, v1 = 5, v2 = 6, v3 = 1, v4 = 2;
printf("Exercise 1:\n====================\n");
switch(v0) {
case 0: printf("Hello October\n"); break;
case 1: printf("Go Kean!\n"); break;
case 2: printf("Academic Building Center \n"); break;
case 3: printf("UNION \n"); break;
case 4: printf("Go ");
case 5: printf("Kean! \n");
default: printf("Have a great semester! \n"); break;
}
for(a=5; a<v1; a++) {
printf("Kean");
}
printf("\n");
if (v2 == 6) {
s = "Go";
}
else {
s = "Hello";
}
if(v3 != v4) {
printf("%s Kean!\n",s);
} else {
printf("%s Computer Science!\n",s);
}
return 0;
}
What is the output of the program? Please explain why.

Step by step
Solved in 2 steps







