Question: Please help me to fix this C language program, It can not compile. The final answer should be print 12 in the result. Code: #include
Please help me to fix this C language program, It can not compile. The final answer should be print 12 in the result.

Code:
#include
int foo(int a, int b){ if(a==b){ a=0; return(a); }else{ int x=a; int y=b; y=y-x; x=y; int c=x; int d; d=bar(x);
y=a+2; int e=foo(y,b); e=e+d; return (e); } } int main(){ int a=0; int b=4; int c =foo(a,b); printf("c: %d ",c); return (0); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
