填空题 C++
题号 #4126109

有如下程序:
#include<iostream>
using namepace std;
template<typename T>
T total(T * date){
    T s=0;
    while(*data)s+=*data++;
    return s;
}
int main(){
    int x[]={2,4,6,8,0,12,14,16,18};
    cout<<tatal(x);
    return 0;
}
执行上面程序的输出结果是________。

进入在线模考

参考答案

暂无

答案解析

20

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考