summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");