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

When you weigh yourself, are you actually reading the support force acting on you, or are you really reading your weight?
Three times a number plus twice another is 10, while their sum is 10, Find the numbers
lauran's shoe organizer can hold 5 pairs of shoes of each row . how many rows will lauren need need if she has 24 pairs of shoes ?
If the diameter of a circle is 5.5 cm what is the radius ?
what is 28.09 rounded to the nearest tenthvis
What does Lincoln mean when he says soldiers gave "the last full measure of devotion"?
When the body receives stimuli, which structure typically processes the stimuli?
How do you work out 8 something 2 something 1 =24 ?
Dave earns $150 per week plus 3.8% commission.he sold $4175.68 in the month of February. What is his gross monthly earning for february?
Which passage is chronological???