This commit is contained in:
Luca Conte 2023-10-18 16:06:09 +02:00
parent 5efe873c5e
commit f71cd26460
2 changed files with 31 additions and 0 deletions

21
a3-7/README.md Normal file
View File

@ -0,0 +1,21 @@
# A3-7
Für diese Aufgabe folgendes Wissen nötig:
1. * zeigt auf den Inhalt einer Speicheraddresse
2. & gibt dieAaddrese von einem abgespeichertem Wert
Somit würde der Code wie folgt aussehen:
```c
#include <stdio.h>
int main(void) {
int i;
int* ip;
printf("Eingabe: ");
scanf("%d", &i);
ip = &i ;
printf("Eingabe war %d\n", *ip);
return 0;
}
```

10
a3-7/main.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
int main(void) {
int i;
int* ip;
printf("Eingabe: ");
scanf("%d", &i);
ip = &i ;
printf("Eingabe war %d\n", *ip);
return 0;
}