I am having the segmentation fault issue for about 3 hours ago and I don't really figure it out why. I am trying to assign memory dinamically to terminos(struct) but I can't. I hope you can help me
#include<stdio.h>
#include<stdlib.h>
typedef struct termino
{
int exponente;
float cociente;
} termino;
typedef struct polinomio
{
termino* polinomio;
int size;
} polinomio;
main()
{
int size_;
termino* terminos;
polinomio *polinomio_;
polinomio_ = malloc(sizeof(polinomio));
printf("%d",(sizeof(polinomio_)*2));
printf("Bienvenido al cálculo de operaciones usando 1 polinomio.\n");
printf("Ingrese la cantidad de términos que tendrá el polinomio.");
scanf("%d",size_);
//assigning memory for terminos.
terminos =(termino*) malloc(sizeof(termino) * size_);