subject

What is the output of the following code? class a { public: a() { cout < < "dc" < < endl; } a(const a& other) { cout < < "cc" < < endl; } a& operator=(const a& other) { cout < < "ao" < < endl; return *this; } ~a() { cout < < "destructor! " < < endl; } }; int main() { a arr[3]; arr[0] = arr[1]; a x = arr[0]; x = arr[1]; a y(arr[2]); cout < < "done" < < endl; }

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, alyssacyamamoto8050
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
image
Computers and Technology, 23.06.2019 18:50, annieleblanc2004
Ais a picture icon that is a direct link to a file or folder
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, erick7123
Why do we mark tlc plates with pencil and not with pen
Answers: 2
image
Computers and Technology, 24.06.2019 22:00, justincsh7238
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
What is the output of the following code? class a { public: a() { cout < < "dc" < <...

Questions in other subjects:

Konu
Biology, 07.12.2020 18:00
Konu
Mathematics, 07.12.2020 18:00