#include<stdio.h>
int main()
{
int a=7, b=5;
switch(a = a % b)
{
case 1:
a = a - b;
case 2:
a = a + b;
case 3:
a = a * b;
case 4:
a = a / b;
default:
a = a;
}
return 0;
}
a) 7
b) 5
c) 9
d) None of the mentioned
Consider the following C program. What is the Value of a?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following C program. What is the Value of a?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!