This commit is contained in:
Joaquin Gottlebe
2025-07-30 15:57:48 +02:00
parent e49fcfac46
commit a639c34cee
273 changed files with 20151 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <stdio.h>
struct point {
float x;
float y;
};
int main() {
struct point p1, p2;
struct point * ptr;
ptr = &p1;
p1.x = 3;
ptr->y = 4;
printf("\nx-Koordinate von p1: %f", ptr->x);
printf("\ny-Koordinate von p1: %f", (*ptr).y);
p2 = p1;
printf("\nx-Koordinate von p2: %f", p2.x);
printf("\ny-Koordinate von p2: %f", (&p2)->y);
printf("\n\n");
return 0;
}