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

Dеclarе and allocatе mеmory (on thе hеap) for a onе-dimеnsional array of 256 doublеs namеd pricеs

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

double *prices=new double [256];

Explanation:

To allocate memory on heap we use new keyword.In the above statement an array name prices is declared and the memory allocated to it is on the heap memory.

First look at double * prices.It is a pointer this pointer is created on the stack memory which holds starting address of the array present on the heap memory of size 256..

Answer Link

Otras preguntas

is it true or false that after the american revolution conflicts in the northwest territory erupted between remaining british soldiers and native americans
graph x+2 is greater than -2
what do you call two ratios that have the same value
solve the missing measure of a square, when P=76inFormula: P=4s
find the area of a circle with a diameter of 22 inches?
Taylor wants to make 2 1/2 times the quantity given in a recipe. The recipe calls for 1 3/4 cups of flour. How much flour will Taylor need?
McDonald's has sold more than a billion hamburgers. If it were possible to eat a hamburger every minute of everyday (day and night) without stopping, how many y
is it true or false that after the american revolution conflicts in the northwest territory erupted between remaining british soldiers and native americans
find the area of a circle with a diameter of 22 inches?
The sum of two numbers is 95, and their difference is 61. What are the two numbers?