问答题

有下列函数定义, 当执行语句"k=f(f(1)); "后, 变量k的值为              。
int f(int x)
{
    static int k = 0;
    k = k + x;
    return k;
}

答案: (1)
2
微信扫码免费搜题