Question: 4. What will be printed out for the answer if the user enters 150 as the input. (20 poin int fun1(int b){ int c;
4. What will be printed out for the answer if the user enters 150 as the input. (20 poin int fun1(int b){ int c; c = fun2(b) + fun3(b); return c; D 27 #include int fun1(int a); int fun2(int a); int fun3(int a); int main(void) { int a; int b; printf("Enter an integer: "); scanf("%d", &a); b = funl(a); printf("answer is: %d",b); return 0; int fun2(int d){ return(d% 10); } int fun3(int e) { int f; f = (int) (e / 10.0) % 10; return f;
Step by Step Solution
There are 3 Steps involved in it
The provided C code has a few issues including missing semicolons and u... View full answer
Get step-by-step solutions from verified subject matter experts
