赞题库-背景图
单项选择题

函数定义如下:
void fun(int x,int& y)x++;y++;
如果执行代码段:
int a=0,b=1;
fun(a,b);
则变量a和b的值分别是( )。

A.0和1
B.0和2
C.1和1
D.1和2