Código C:
Ver original
#include <stdio.h> #include <stdlib.h> struct elemento{ char nombre[3]; double fem; double df; }; int main() { struct elemento barra1; struct elemento barra2 = {"AB", 0.45, 25.0}; barra1 = {"BC", 0.57, 29.0}; return 0; }