This commit is contained in:
2023-09-23 22:20:41 +03:00
parent 609aa52e66
commit 66997adad5
42 changed files with 642 additions and 0 deletions

19
learnc/learnc11.c Executable file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int x;
int y;
} point;
int main() {
point * mypoint;
mypoint = (point *)malloc(sizeof(point));
mypoint->x = 10;
mypoint->y =5 ;
printf("mypoint coordinates: %d, %d\n", mypoint->x, mypoint->y);
free(mypoint);
return 0;
}