You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#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);
|
|
}
|
|
|