|
From: <and...@su...> - 2003-03-06 23:28:07
|
1. Please consider the following piece of code
#include <stdio.h>
#include <string.h>
...
int main()
{
char *vect[100];
...
/* line x */ vect[3]="text";
...
/* line y */ strcpy(vect[3], "text");
...
}
...
2. Both commands in lines x and y don´t gererate any compilation errors;
3. The command in line x works fine;
4. Why the command in line y generates an execution error interrupting the
execution of
the program?
Regards
Andre
|