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

17. The Steam Engine was important to the Industrial Revolution. Why? (Pages 454-455) __________________________________________________________________________
Given m||n , find the value of x
GIVING BRAINLIESTPierre et toi _____ des pizzaswhat is the proper "prends condrugation"
A bag contains 7 white marbles, 5 red marbles, and 3 green marbles. If 2 marbles are randomly drawn, what is the probability that the first marble is red and th
(y +12) (y - 18) (x) (z) x= y = Z =
What number multiplies to 30 and adds to 17? (Factoring: diamond method)
Which statement BEST describes the effect of the massive economic growth and industrialization that China has experienced since 1949?
What is the area of this figure?
Help please and no links!!!!
Which of the following is not a producer? Wildflowers Mushrooms Grasses Palm Trees