B
Bill Cunningham
The code here,
http://www.java2s.com/Code/C/Structure/Pointingoutthehorsesallocatememoryforstruct.htm
Confuses me in some places. *pcats[50] must mean the most number of cats
possible to put into the struct is 50. Then farther into the code
pcat[hcount] shows up. hcount is a count iterator of course. That I can see.
The code compiles and runs good and does what is expected. I am just used to
putting into the struct something like
struct cat *next
for the next page which would be about another cat. How could I get the
above to work in this example?
Bill
http://www.java2s.com/Code/C/Structure/Pointingoutthehorsesallocatememoryforstruct.htm
Confuses me in some places. *pcats[50] must mean the most number of cats
possible to put into the struct is 50. Then farther into the code
pcat[hcount] shows up. hcount is a count iterator of course. That I can see.
The code compiles and runs good and does what is expected. I am just used to
putting into the struct something like
struct cat *next
for the next page which would be about another cat. How could I get the
above to work in this example?
Bill