Код: Выделить всё
#include
using namespace std;
class A{
public:
int data;
A(int s){
data=s;
}
A(A &obj){
data=obj.data;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79035185/is-this-how-the-bts-things-works-for-given-code-if-return-value-optimization-is[/url]