如下程序的最后运行结果为()#include iostream


如下程序的最后运行结果为()#include iostream

using namespace std;

int f(int a)

{

auto int b=0;

static int c=3;

b=b+1;c=c+1;

return (a+b+c);

}

int main()

{

int a=2,i;

for(i=0;i3;i++)

coutf(a)endl;

}

A.678

B.789

C.567

D.无输出结果

正确答案:789


Tag:面向对象程序设计 程序 时间:2021-12-29 13:20:35