手机扫码访问

导航
您当前的位置:首页 > 高教类 > 工学类
问题:

[单选题]What is the meaning of the return value of T & Vector<T>::operator[](Rank r) { return _elem[r]; }? T & Vector<T>::operator[](Rank r) { return _elem[r]; } 中的返回值T&是什么意义?KRm答案窝(daanwo.com)-大学作业答案分享平台
AThis is a pointer of type T because it is more efficient 这是类型T的指针,使用它是因为效率更高KRm答案窝(daanwo.com)-大学作业答案分享平台
BThis is a reference to type T because it is more efficient 这是类型T的引用,使用它是因为效率更高KRm答案窝(daanwo.com)-大学作业答案分享平台
CThis is a pointer of type T because its return value can be used as an left value 这是类型T的指针,使用它是因为返回值可以作为左值KRm答案窝(daanwo.com)-大学作业答案分享平台
DThis is a reference to the type T because its return value can be used as an left value 这是类型T的引用,使用它是因为返回值可以作为左值
答案解析:

相关问题
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2020 www.daanwo.com All Rights Reserved