Not really. Are you trying to create a linked list of structures? If that is the case take a look at this tutorial. If you are just trying to dynamically allocate an array of structures you would need something like this:
Code:
#include <stdio.h>
#include <stdlib.h>
struct myStruct{
int i;
};
int main(void){
struct myStruct *ptrStruct = malloc(2*sizeof(myStruct));
ptrStruct[0].i = 3;
ptrStruct[1].i = 4;
for(int i=0;i<2;i++)
printf("%d\n", ptrStruct[i].i);
getchar();
return(0);
}
EDIT: Of course you would check the return value of malloc to ensure you actually got the memory you requested.