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

In the early 1800s, which factor was most important in the development of northern manufacturing centers?
What is the most important reason the Indo- European languages dominate the globe geographically today? A. Europeans trade more than other people. B. European
What's number is 35% of 20
put adaptation in a sentence
which equation represents a spontaneous transmutation
How does cell technology affect government?
Which equation can be used to find the answer? After two months, Rachel has saved enough money to buy an MP3 player. During the second month, she saved $87 and
what is 5.65 into a mixed number
explain how you know whether to add or subtract when you use the distributive property to multiply
$213 ski jacket 30% discount