Make a for
loop, let it iterate from i = 0
to 9
. In each iteration, allocate one struct hash
and point v[i]
to it. Afterwards, initialize *v[i]
as needed. Don’t forget to check if malloc()
failed.
Make a for
loop, let it iterate from i = 0
to 9
. In each iteration, allocate one struct hash
and point v[i]
to it. Afterwards, initialize *v[i]
as needed. Don’t forget to check if malloc()
failed.