Computers and Technology
Computers and Technology, 03.03.2020 00:48, Kenzijo33

If obj1 and obj2 are both objects of a class that uses dynamic memory allocation, but the class does nohave an assignment operator, what happens if you execute the following code? obj1 =obj2; 50)
a) a syntax error occurs, you cannot assign one object to another object without the =operator. b) there is a complete and independent copy of all the dynamic memory from obj2 to obj1.c) the pointer(s) to the dynamically declared memory in obj2 are copied to the correspondingpointers in obj1.d) a run-time error occurs, because the c++system does not know how to do the assignment

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, lm18618
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
image
Computers and Technology, 23.06.2019 11:30, magicalpenguin48
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
image
Computers and Technology, 24.06.2019 02:20, Jonny13Diaz
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
image
Computers and Technology, 25.06.2019 08:00, Jroc23
What are good colleges to apply to if you got like a 2.5 as a gpa? already got a call back from gcu at least its a start rt
Answers: 2
Do you know the correct answer?
If obj1 and obj2 are both objects of a class that uses dynamic memory allocation, but the class does...

Questions in other subjects:

Konu
Mathematics, 17.11.2020 22:30
Konu
Mathematics, 17.11.2020 22:30