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

Why might complaints of age discrimination grow when the economy is slow? companies work very hard to retain their best talent in a recession. older employees p
Henry is an avid reader, He devours 90 pages in half an hour how many pages has Henry read per minute?
Please help!! BRAINLEST ANSWER can you find the area and circumference of a circle given the radius or diameter? If its yes or no explain why
What is the relationship between the wavelength of a wave and it's energy?
help with number one and 2
A government order to stop sending supplies
1. What did John W. Mackay and George Hearst have in common?2. How did the speculators price land during the gold rush? At what price was the Ophir quoted?3. Th
answers? plz help gotta get it done
What is The cellular process that releases the energy stored in food molecules
what is the term for all the traits passed biologically from parent to child.