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

Explain which atom L or M is more stable and why
Why do you think water is so important to living things
what does x = in this equation x+3+2x=x+5
Given that anna wants to spend less than $60 for the subscription and only full month subscriptions are offered, what is the maximum number of months that ana c
There are 15 plates and each plate is either 7 or 12 inches diameter. Which systems of equations do you use to find the number of 7 inch plates, x and 12 inch p
who's harder to draw (this i for a art competition at school) look at these character. rate them 1 to 100
The following frequency table relates the weekly sales of bicycles at a given store over a 42-week period.Value01234567Frequency367108521(a) In how many weeks w
I need help really stuck
Complete this brønsted-lowry reaction placing each product by its appropriate label. hso4- + hcn
does everyone have access to the american dream?