I have a structure
typedef struct store { char name[11]; int age; } store;
and a main function(below is part of it):
int
Change the name[11] to *name; Allocate memory for that everytime using malloc.
By the way, register is a keyword in C language. You can't use it like you did !
register