Assume that there's a function double* getMemoryForDouble (int n) that returns the memory address of the first element of a contiguous block of memory available for storing n doubles.
Write code that:
1) uses this function to allocate such a block for 3 doubles
2)stores the values 0, 0.1, and 0.2 in the space