Code:
#include <stdio.h>
#include<stdlib.h>
struct alumno1{
int edad1;
float nota1;
};
struct alumno{
int edad;
float nota;
struct alumno1 *alu1;
};
int main(int argc,char **argv){
struct alumno *alu;
alu=malloc(sizeof(alu));
alu->alu1->edad1=12;
printf("%i",alu->alu1->edad1);
free(alu);
return 0;
}
I get an error, in windows it stops working and ubuntu the core dumped that I think means that it is accessing memory positions that do not correspond thanks and a greeting