mirror of
https://github.com/devproje/devproje.git
synced 2025-04-22 06:49:52 +09:00
20 lines
385 B
C
20 lines
385 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
struct Person {
|
|
char name[20];
|
|
int age;
|
|
};
|
|
|
|
int main(int argc, char **argv) {
|
|
struct Person *dev = malloc(sizeof(struct Person));
|
|
|
|
strcpy(dev->name, "DEV_Project");
|
|
dev->age = 17; // 한국 만 나이
|
|
|
|
printf("Hello! I'm %d years old %s Nice to meet you!\n", dev->age, dev->name);
|
|
free(dev);
|
|
|
|
return 0;
|
|
}
|