#include <stdio.h> #define NAME_LENGTH 50 typedef struct { char name[NAME_LENGTH]; int age; char gender; } Person; void PrintPerson(Person *p) { printf("name: %s\n", p->name); printf("age: %d\n", p->age); printf("gender: %d\n", p->gender); } int main() { Person person = { "Aå±±Bç·", 20, 0 }; PrintPerson(&person); getchar(); }