What should i do to make this code return the size of my dynamic allocated array. it just says that its 4 bytes, but I want all of the array
Code:floatarray = new float[7]; for (k=0;k<7;k++) floatarray[k]=(k+1); cout << "size of floatarray" << sizeof(floatarray) << endl;