Code:I have some problem with a small recurse program,debug is OK,but the running result is incorrect.The function of the program is to calculate a total addition result of the variable x, may be there are some problem with the semantic, can any friend help me?Thanks very much! #include<stdio.h> int test(int sum) {int x; scanf("%d",&x); if(x==0) sum=0; else{test(sum);sum+=x;} return(sum); } int main() {int t,s; s=test(t); printf("%d",s); return 0; }