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

Can any experts help me?? Solve for x° and y°. Easy for anyone.
Please explain if you can how to do it or show your steps
I just pulled a tick from my dog. How do I get rid of these?!?!?! I bathe him every week and comb him about every 3-4 days
Evaluate −x2+4x+1 when x=−2.
I REALLY NEED TO HELP, PLEASE. Can you tell me the examples of personification, metaphor and alliteration in this passage?
how do you think this fish population may change?​
Given the function, does the parabola open up or down? y=x^2-6x+8
Answer right and I will mark brainiest and give 50 points...
please answer correctly, will mark brainliest worth 30pts
3. REASONING Did the resettlement plan accomplish the goals of the American Colonization Society? Why or why not? Support your answer with evidence from the tex