Question: I ' m stuck on this question and would probably need some help with this one, I typed it out on an AI program but

I'm stuck on this question and would probably need some help with this one, I typed it out on an AI program but it gave me such confusing results.
11.3.3: Operators: new, delete, and ->.
Two integers are read as the age and the weight of a Dog object. Assign pointer myDog with a new Dog object using the age and the weight as arguments in that order.
Ex: If the input is 1446, then the output is:
Dog's age: 14
Dog's weight: 46
 I'm stuck on this question and would probably need some help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!