Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  stack allocation
Language: C/C++
Code:
# include<iostream>
#include<new>
using namespace std;
int main()
{
const int NUM_ARR=10;
cout<<"type in array size";
int size;
cin>> size;
double*arrPtr[NUM_ARR];
int i;
for(i=0;i<NUM_ARR;i++)
{
 arrPtr[i]=new double[size];
cout<<"Allocated"<<size
<< "doubles for i="<<i<< end};
          
Comments: