I\'m tasked to create a program which dynamically allocates memory for a structure. normally we would use
x=malloc(sizeof(int)*y);
However,
This should do:
struct st *x = malloc(sizeof *x);