Hector9810 Hector9810
  • 04-10-2019
  • Computers and Technology
contestada

)Dynamically allocate an object of Banana, using the pointer variable daco.

a)Banana * = new daco;

b)daco = new * Banana;

c)daco = new & Banana;

d)daco = new Banana;

Respuesta :

ExieFansler ExieFansler
  • 04-10-2019

Answer:

d) daco = new Banana;

Explanation:

Dynamically allocated variables have their memory allocated in the heap memory.We declare a dynamical variable like this:-

int *a=new int ;

It means a pointer a is created on the stack memory which hold the address of the block that hold the value of variable a in heap memory.

We already have the pointer daco. We just have to initialize with keyword new.

It will be like daco=new Banana; which matches the option d.

Answer Link
taylorlattimore21
taylorlattimore21 taylorlattimore21
  • 05-11-2020

Answer:

What can I help you with:)

Explanation:

Answer Link

Otras preguntas

Plz help What will the area of the wound be on day 8 On what day will the area of the wound be less one square millimeter Plz give me the right answer I will
What is used in an electrical circuit to prevent a short circuit?
_______ led the way in the search for a sea route to asia.
-34 divided by -1.2 rounded to the nearest hundredth?
What are imperialism main goals
What does winston remember about his family and his relationship with his mother?
Identify the role the evaporution and condensation play in earths water cycle
What 4 groups of organisms make up the category Eukaryotes?
Eduardo y Sandra llegan al ____. estadio horario borrador
According to a survey, 15% of city workers take the bus to work. Donatella randomly surveys 10 workers. What is the probability that exactly 6 workers take the