单选题

有以下程序

#include <stdio.h>

int f(int x); 

main()

{

    int a, b=0; 

    for(a=0;a<3;a++)

    { 

       b=b+f(a);

       putchar('A'+b);

    }

}

int f (int x) 

{

    return x*x+1;

}

程序运行后的输出结果是(    )

A

BCD

B

BDI

C

ABE

D

BCF

赣ICP备20007335号-2