#include using namespace std; int main() { float sum=0.0,x[10],*pstart,*pend; cout << " Standard array access notation \n"; for (int i=0;i<10;++i) { x[i]=i; sum += x[i]; cout << i << " " << x[i] << " " << sum << "\n" ; } sum=0.0; pstart = &x[0]; /* unit of allocation for the variable - float 4 bytes */ pend = pstart + 10; cout << " Using &x[0] for start address \n"; while (pstart < pend) { sum += *pstart++; cout << sum << "\n"; } sum=0.0; pstart = x; /* x = &x[0] */ pend = pstart+10; cout << " Using x for start address \n"; while (pstart < pend) { sum += *pstart++; cout << sum << "\n"; } return(0); }