Is this what prelude is saying here
Code:
struct Node *make_node ( void )
{
struct Node new_node = malloc ( sizeof *new_node );
/* Error check and set a default state */
return new_node;
}
or
int make_node ( struct Node **new_node )
{
int rc = EXIT_SUCCESS;
new_node = malloc ( sizeof *new_node );
/* Error check and set a default state */
return rc;
}
Or is it possible to do this
Code:
struct Person {
char *name;
int age;
float height;
};
struct Person people[] = {
{"Prelude", 25, 5.9f},
{"Generic person", 20, 6.0f}
};
and then add another person later?