I have a structure called table, I just want to create a table, like constructor in java, but when i call this function in main, it gives segmentation fault
struct table *create(char *name,int number,char *s_name)
{
struct table *newTable;
newTable->name = name;
newTable->number = number;
newTable->s_name = s_name;
return newTable;
}