Ejemplo de un constructor, código de 10 lineas
#include <stdio.h> #include <string.h> struct Person { char name[100]; int age; }; int main() { struct Person p; strcpy(p.name, "John Jones"); p.age = 43; printf("%s is %d years old.\n", p.name, p.age); return 0; }