问题 单项选择题

有如下程序段
int i=0,j=1;
int &r=i; //①
r=j; //②
int *p= &i; //③
*p=&r; //④
其中会产生编译错误的语句是( )。

A.④
B.③
C.②
D.①

答案

参考答案:A

多项选择题
多项选择题