enregistrement en c

#include <stdio.h>

// Define a structure for a person
struct Person {
    char name[50];
    int age;
    float height;
};

int main() {
    // Declare and initialize a person
    struct Person person1 = {"John Doe", 25, 175.5};

    // Print the information of the person
    printf("Person Information:\n");
    printf("Name: %s\n", person1.name);
    printf("Age: %d\n", person1.age);
    printf("Height: %.2f\n", person1.height);

    return 0;
}