Int main ()//
{
Int * a;
Int j=2;//do not add this step and modify the ninth line error
int i;
A [0]=100;
A [1]=50;
for(i=0; I<2; + + I)//9 lines
{
Printf (" % d ", a [I]);
}
return 0;
CodePudding user response:
A is wild pointer, the so-called wild pointer is pointing to a memory address not sure, if a point to a readable writable, this program is running is no problem,But if a points to the position of can't read and write, so will appear mistake,
So there is no guarantee that works every time,
In addition, even if the normal operation, a point to the location of the distribution is also not been system, then the other programs may also continue to use this piece of memory, so the assignment may be modified or changes the value of the other programs in this area, therefore, is very dangerous,