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

Solve. If a=5 , b=6, and c=7 . then a+b+(c)(1/c) =
Is it possible that a speed of 254 and a speed of 100 could be the same speed?
What is 90 divided by 30
What are the physical features of Africa below the equator?
How to write 7.24 in word form?
write 36 as the product of prime factors
The choir director set up chairs for the concert with an equal number of rows and columns. The number of chairs in each row and column is represented by y, wher
helpp meeeeeeee plzz
Name three fractions whose decimal equivalent is 0.40.draw a picture if it helps you explains
Nate operates a hot dog stand. On Wednesday he used 5 bags of hot dog buns. On Thursday he used 1 3/4 times as many hot dog buns as on Wednesday. How many bag