{ int *z = new int[100]; z[1]=1; z[2]=4; z[3]=5; ... z[100]=20; }
{ int *z = new int[100]; z[10]=4; z[3]=5; z[100]=20; ... z[2]=4; }
int *z = new int[100];
z[100] = 20; //out of bounds, likely crash z[99] = 20; //last valid index
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)