summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwoexem <twoexem@gmail.com>2025-01-26 16:32:30 +0100
committertwoexem <twoexem@gmail.com>2025-01-26 16:32:30 +0100
commit3cc8ff38bb59b2bddb2b93eb0ca458167de9131b (patch)
tree8678178b09b55ac417a098dba54575d9108204ce
parentae6707a9c757f666659868cab36cf178c0edc476 (diff)
Fehlerbehebungen
-rwxr-xr-xoutput/Übungbin64800 -> 64800 bytes
-rw-r--r--Übung.c6
2 files changed, 3 insertions, 3 deletions
diff --git a/output/Übung b/output/Übung
index df22e20..d7fe45d 100755
--- a/output/Übung
+++ b/output/Übung
Binary files differ
diff --git a/Übung.c b/Übung.c
index 1095728..bcde30f 100644
--- a/Übung.c
+++ b/Übung.c
@@ -60,7 +60,7 @@ void aufg_10_2() {
// Abfragen, welches Element entfernt werden soll
int entf;
- printf("Welches Element entfernen?");
+ printf("Welches Element entfernen? ");
scanf("%d", &entf);
// For-Schleife, die ab dem gewollten Element das Array verschiebt
@@ -71,8 +71,8 @@ void aufg_10_2() {
// Ausgabe des Arrays
int n;
- for(n = 0; n <= sizeof(a); n++) {
- printf("%d", a[n]);
+ for(n = 0; n <= 9; n++) {
+ printf("%d ", a[n]);
}
printf("\n");