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

Yesterday,there were 30 problems assigned for math homework Nancy did 10% of them incorrectly. How many problems did Nancy get wrong?
What is the Point-Slope Equation of a Line formula of Algebra 2?
Which numbers between 1 and 25 are "squareable"? Support your answers with explanations and diagrams. (HELP PLS THIS IS DUE IN 20 MINS)
What does your BMI (Body Mass Index) describe about your body?
Please I really need help on this question
Solve for r. –10r = 4 − 9r
who clean the bad blood and give good blood​
Please I really need help with answering this question, I would be so grateful for any help
help me with this.I don't know spanish and if someone know what they mean
Determine the center and radius of the circle described by the equation. (x+1)²+(y-5)²=36​