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 for x. Round to the nearest tenth, if necessary.
(a)234.3x13 (b) 31.38 X 5 (c) 0.653X 45 (d) 21.45X 10 (e) 25.41X 18 (f) 93.2 X 47 (g) 234.2X 342 (h) 89.4X20 (a)1.1 X 3.0 (b) 2.5 X 1.4 (c) 3.4X 4.6 (d) 2.4X4
Cual de las siguientes fracciones es equivalente a 6/18 1/3 2/3 3/18 3/6
¿Qué características distinguen a los coloides de otras mezclas?
a computer takes a lot of time to do complex calculation​
Using the digits 2 through 8, find the number of different 5-digit numbers such that, digits can be used more than once.
Classical economist David Hume observed that as the money supply expanded after gold discoveries it took some time for prices to rise and in the meantime the ec
What is the elevation of point B
can anyone help me with this
State whether plastic is biodegradable or non-biodegradable ? Give reasons for your answer.​