parent
3ae8f399af
commit
3681cffbb5
@ -0,0 +1,17 @@ |
||||
#include <stdio.h> |
||||
|
||||
struct Person |
||||
{ |
||||
char name[50]; |
||||
int age; |
||||
float height; |
||||
}; |
||||
|
||||
int main() |
||||
{ |
||||
struct Person person = { "Alice", 30, 170.5 }; |
||||
|
||||
printf("Name: %s\n", person.name); |
||||
printf("Age: %d\n", person.age); |
||||
printf("Height: %.2f\n", person.height); |
||||
} |
Loading…
Reference in new issue