Câu 1
It is not necessary to initialize a reference to real object when it is declared.
Đáp án và lời giải
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: B
One can apply pointer arithmetic with reference variables.
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: B
Đáp án: B
Đáp án: A
Đáp án: B
Đáp án: A
Đáp án: A
Đáp án: A
Đáp án: B
Đáp án: B
A class object passed to a function template must overload any operators used on the class object by the template.
Đáp án: A
Đáp án: B
It is possible to overload a function template and an ordinary (non-template) function.
Đáp án: A
A class template may not be used as a base class.
Đáp án: B
Đáp án: A
Đáp án: B
What is the output of the following code? #include using namespace std; int main() { int a = 20; int &n = a; n = a++; a = n++; cout << a << "," << n << endl; system("pause"); }
Đáp án: D