Code:
int* x=new int[10]; cout << (sizeof(x)/sizeof(int)) << endl; x[0]=10; x[1]=20; x[2]=30; x[3]=40; cout << x[0] << endl; cout << x[1] << endl; cout << x[2] << endl; cout << x[3] << endl; cout << x[4] << endl; cout << (sizeof(x)/sizeof(int)) << endl;
Comment