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

Define a pointer variable named daco that can be used for objects of the class Banana.

a)new int daco;

b)new Banana daco;

c)Banana * daco;

d)new Banana * daco;

Respuesta :

ExieFansler ExieFansler
  • 04-10-2019

Answer:

c)Banana * daco;

Explanation:

To declare an variable pointer we use * symbol after writing it's type.For example int *.Then we write the name of the variable since the name of the variable is daco.The class is a user defined data type so instead of writing any data type we will write class name then the * then name of the variable.

Banana * daco; which matches the option c Banana* daco;

Answer Link
nunyabizzzz
nunyabizzzz nunyabizzzz
  • 23-10-2020

Answer:

A

Explanation:

it's new int daco;

Answer Link

Otras preguntas

yuri measured the snowfall over a four-day period and calculated a total of 15131513 inches of snowfall. if it snowed 434434 inches on the first day and 212212
What kind of person is nat turner
María and her husband Jose have built a sandbox in the backyard for the kids. They want to allow the kids to complete the project by adding the sand.which of th
vitamins and minerals found in strawberrys
If the distance traveled is 14.25m, what is the average velocity?
which quantity is proportional to 45⁄3?
where do I find answers for Connections Spanish?
The dwarf sea horse hippoca,pus zosterae swims at a rate of 52.68 feet per hour. Convert this speed to inches per minute
34/100 in simplest form
Why do amoeba need to change shape?