1.下面的代码打印在屏幕上的值是多少?
/下面的代码打印在屏幕上的值是多少?#include "stdio.h"int compute_data(int arr[], unsigned int len)
{long long int result =0;if(result == len)return arr[0];result=compute_data(arr,--len);printf("len=%d, result=%lld, arr[%d]=%d\n", len, result, len, arr[len]);long long int x=(result % 2)?(result + arr[len]):((result +1)*arr[len]);printf("x=%lld\n", x);return x;
}
int main(void)
{int a[100]={1,2,3,4,5};printf("%d\n", compute_data(a,100));return 0;
}