N
nimeshmaheshwari
Hi
I need some help, in syntax, going from c to c++
how will the following syntax be written in c++ using the new statement
if ((new_table->table = malloc(sizeof(list_t *) * size)) == NULL) {
return NULL;
here are the struct definitions
struct createList
{
int data;
createList *list;
};
struct createTable
{
int table_size;
createList **table;
};
new_table is an instance of createTable.
Any help will be appreciated
thanks
nimesh
I need some help, in syntax, going from c to c++
how will the following syntax be written in c++ using the new statement
if ((new_table->table = malloc(sizeof(list_t *) * size)) == NULL) {
return NULL;
here are the struct definitions
struct createList
{
int data;
createList *list;
};
struct createTable
{
int table_size;
createList **table;
};
new_table is an instance of createTable.
Any help will be appreciated
thanks
nimesh