6 //char *stringCannotBeChanged = "String cannot be changed!";
7 char *nullString = NULL;
9 printf("Now the program will crash! Take a cover! \n");
10 //*stringCannotBeChanged = 'h';
11 printf("Nonsense!\n");
12 if (strcmp(nullString, "A string to compare with") == 0) {
13 printf("How come?! It had to be crashed!\n");
17 int main(int argc, char *argv[])
20 printf("arguments: %d\n", argc);
21 for (i=0; i<argc; i++)
22 printf("%d: %s\n", i, argv[i]);
23 printf("Press ENTER\n");