struct struct_set
{
unsigned long long number;
struct_set *next;
};
Is linked list
So there is not any need to write it as contiguous memory.
for more Linked list
As it is homework, do that by yourself
solved Dynamic memory allocation without brackets [closed]