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

Write the formula for the volume of a square prism, V = 1/3 * s ^ 2 * h in terms of h. Then find the height h of a square prism with volume V = 60 cm ^ 3 side l
What is the domain? What is the range?
What are the significance of the NAPOLCOM in the operation of the PNP
Joaquin is thinking hard about equations and inequalities and comes up with this idea: If 45+15=t, then t=45+47. So, if 45+47
When writing a linear equation from a word problem, the rate of change is the slope, m. True False
HELP ME PLZZ I NEED HELP
HELP ME PLZZ I NEED HELP
Which equation correctly relates mechanical energy, thermal energy and total of energy when there is friction present in the system?
How many students in the Venn diagram are female?
Solve the problems. Write the complete proof in your paper homework and for online (only) respond to questions or statements (if any) that are parts of your pro