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

What is the answer to 2x+2y=36 when x-y=6
what is 3/5 of 3 3/4
Michelle has a $100.she wants to purchase paper pins ($20) and file covers ($20) and paper weights. Each paper weight costs $10. How many paper weights can she
What is 1/3 of 126 and and also what is 3/4 of 126
Start at 4. Create a pattern that multiplies each number by 5. Stop when you have five numbers.
What are elie's thoughts about god at this point book. Night
Sheila bought some rose plants and sunflower plants.There were 35 rose plants than sunflower plants.If the ratio of the rose plants to sunflower plants was 8:3,
what is 3/5 of 3 3/4
I need help with 2 math questions???
How did prohibition lead to a rise in organized crime?