Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need large amount of help for C Programming classwork
#5
Fiel Wrote:Don't use malloc. That can easily lead to pseudo-dynamic allocation (using the user input to create the size of the array without using malloc. I remember if I did that on any of my C assignments I received a 0 without the ability to contest it). Of course, the choice is up to you guys. Chin
Obviously you'd do a sanity check on the input before calling malloc.
Reply


Messages In This Thread
Need large amount of help for C Programming classwork - by Spaz - 2009-09-24, 09:08 PM

Forum Jump:


Users browsing this thread: