#includeusing namespace std; void malo(double **p) { *p =new double; double *w=new double[10]; for (int i=0;i<10;i++) { w[i]=2*i; } *p=w; } void main() { double *m=NULL; malo(&m); for (int i=0;i<10;i++) { cout< <<""; } delete[] m; system("pause"); }