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

All of the questions
A bill is given a number read twice and sent to a standing committee. What does this describe
What is the value of c?
1 Identify whether the series summation of 16 open parentheses 5 close parentheses to the I minus 1 power from 1 to infinity is a convergent or divergent geomet
Low-riding sports cars with rear-mounted engines often use this cylinder arrangement in which the cylinders actually move side to side rather than up and down.
Which of the following is not a way that science influences society
What British practice was a violation of neutral rights?
All of the questions
What is the area of the kitchen floor in this floor plan? a) 24 square meters b) 28 square meters c) 35 square meters d) 42 square meters
Which of the following cultures did not influence Dominican cuisine? (1 point) A Chinese B African C Spanish D Taíno