)Dynamically allocate an object of Banana, using the pointer variable daco.
1 answer:
Answer:
d) daco = new Banana;
Explanation:
Dynamically allocated variables have their memory allocated in the heap memory.We declare a dynamical variable like this:-
int *a=new int ;
It means a pointer a is created on the stack memory which hold the address of the block that hold the value of variable a in heap memory.
We already have the pointer daco. We just have to initialize with keyword new.
It will be like daco=new Banana; which matches the option d.
You might be interested in
I don't really understand the meaning of the question. Can you reply and i'll try to help...
Me ......................
All parts of a statement must be true for it to be true
Change is what is left over
ex. the cashier tells you "here is your leftover change sir/ma'am "<span />
Answer:
I belive the answer is E
Explanation: