View Single Post
Join Date: Aug 2008
Posts: 19
Reputation: OutOfReach is an unknown quantity at this point 
Solved Threads: 2
OutOfReach OutOfReach is offline Offline
Newbie Poster

Re: Pointer arrays and structures

 
0
  #3
Nov 28th, 2008
Ahh! I see, so you need to allocate space for each structure that the pointer points to.

I ended up using:
  1. students[i] = (struct studentInfo *)malloc(sizeof(struct studentInfo));


And now everything works fine. Thank you.
Last edited by OutOfReach; Nov 28th, 2008 at 4:16 pm.
Reply With Quote