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

Which of the following countries is located in both Europe and Asia? A Russia B. Brazi C China D. Italy HURRRYYYY
find an equation equivalent to r = 10 sin in rectangular coordinates
PLEASE ANSWER THIS QUESTION ILL MARK YOU AS THE BRAINLIEST
What are the two kinds of taxes that Canadians pay to the federal government? What does each of these taxes mean?
What evidence from Osiris and Isis supports the idea that Sêth was dangerous to Egypt?
The number of viewers for a new television show are modeled by the following function, where V(t) represents the number of viewers, in tens of thousands, and t
What sort of political changes occurred in Germany during WWI?
2. please help this questiong
A square has side length of 9 which is the following a correct way to find the area of the square
help! whats the value of x