This commit is contained in:
2024-11-28 11:27:09 +01:00
parent d6f5f0cac9
commit aa2ff99dcf
53 changed files with 4366 additions and 27 deletions
+7 -6
View File
@@ -33,15 +33,16 @@ int main() {
printf("\ny-Koordinate von p: %f", ptr->y);
free(ptr);
ptr = NULL;
printf("\n");
printf("\nnach free():");
// printf("\n");
// printf("\nnach free():");
// Dangling Pointer!
printf("\nx-Koordinate von p: %f", ptr->x);
printf("\ny-Koordinate von p: %f", ptr->y);
// // Dangling Pointer!
// printf("\nx-Koordinate von p: %f", ptr->x);
// printf("\ny-Koordinate von p: %f", ptr->y);
printf("\n\n");
// printf("\n\n");
}
return 0;
}