struct Total
{
char Name[40];
int No[40];
};
struct Total *List = NULL;
I have this struct which I want to allocate memory for it dynamically.
List =(struct Total*)realloc(List,n*sizeof(struct Total));
But whenever I use the notation List.Name
it gives error saying I should use ->
is there a way to do this without using ->
this ?