欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

What's the output of the following code?
float area(float & x)
{
    x = x * x;
    return x;
}
int main ()
{
    float value = 3.0f;
    cout << area(value) << endl;
    cout << value << endl

A. 9
3
B. 3
9
C. 9
9
点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题