单项选择题What's the output of the following code? float foo(float * p, int n) { p[0] = 1.0f; } int main () { float values[4] = {3.0f, 4.0f, 5.0f, 6.0f}; foo(values+2, 2); cout cout cout cout << values[2] << endl
A. 3
4
5
6
B. 3
5
1
1
C. 1
5
4
4
D. 1
5
5
5