rahulhappy8886 rahulhappy8886
  • 14-09-2019
  • Computers and Technology
contestada

Dynamically allocatе mеmory for a DNA objеct and storе its addrеss in a variablе namеd dnaPtr

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

 DNA obj =new DNA;//obj object created dynamically.

   DNA *dnaPtr=&obj.//dnaPtr to store the address of the object.

Explanation:

The above written statements are in C++.The DNA object is created dynamically and it is done in C++ by using new keyword which allocates the heap memory for the object.

Then a dnaPtr is created of type DNA so that it can store the address of the DNA objects.

Answer Link

Otras preguntas

The product of 2 more than 5 times a number and 4 less than three times a number
1/2x +1/4y =32 , then find 2x+y
Is quadrilateral DEFG a parallelogram? Why or why not? Question 2 options: A) Yes, because adjacent angles aren't supplementary. B) No, because adjacent angle
[tex](32)^{1/5}[/tex]
What time is shown on the clock?
Martin spent $300 from his savings account on a new bike. He also deposited $300 in his savings account that he earned from selling his used textbooks. Which in
Which of the following numbers is divisible by 6? 3,246 9,787 8,752 5,967
During the Mexican War Group of answer choices Mexican troops occupied much of Texas after winning at the Alamo. the bulk of the fighting occurred in California
A. 24 = -3 + 3n B. 11 + 4x = x - 10 C. -216 = 1 + 7(1 + 8m) D. 3p - 3(2 - 2p) = 34 + 4p ( solve and show work please)
Find the area of the triangle. A. 19.2 yd² B. 9.3 yd² C. 8.5 yd² D. 17.1 yd²