由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Q55: (C17)
相关主题
C++: 如何对const data member做assignment?刚phone完MS,好紧张。。。。
请问一道c++题目bloomberg面经
C++ Q89: function template and overloadingMS sdet面经 + bloomberg电面面经
请问关于overloading << (转载)问个C++问题
Q in C/C++问个题
[合集] 贡献几个C/C++编程电话面试题面经-flextrade, hulu, bloomberg, mircrostrategy
请教operator const char*() 的问题C++ Q48: illegal operation (C33)
Google的一道面试题C++ Q71: overloading (skillport)
相关话题的讨论汇总
话题: assignment话题: legal话题: operator话题: illegal话题: function
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
int x;
function () =x;
Is the assignment statement in the sample code above legal or illegal?
a) It is legal if the return type of function is a reference to int.
b) It must be illegal since the left side of the assignment operator is not
an rvalue.
c) It must be illegal since the left side of the assignment operator is not
an lvalue.
d) It is legal if the return type of function is a pointer to int.
d) It is legal if there is an overloaded, non-member assignment operator.
h**6
发帖数: 4160
2
A
1 (共1页)
进入JobHunting版参与讨论
相关主题
C++ Q71: overloading (skillport)Q in C/C++
C++ Q72: template (skillport)[合集] 贡献几个C/C++编程电话面试题
bloomberg电面经,请教operator const char*() 的问题
C++ 面试题Google的一道面试题
C++: 如何对const data member做assignment?刚phone完MS,好紧张。。。。
请问一道c++题目bloomberg面经
C++ Q89: function template and overloadingMS sdet面经 + bloomberg电面面经
请问关于overloading << (转载)问个C++问题
相关话题的讨论汇总
话题: assignment话题: legal话题: operator话题: illegal话题: function