RSS Forums RSS
Please support our C advertiser: Programming Forums

Run-time Error when printing Array Contents.

Join Date: Sep 2004
Posts: 22
Reputation: Layla_2401 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Layla_2401 Layla_2401 is offline Offline
Newbie Poster

Re: Run-time Error when printing Array Contents.

  #9  
Mar 13th, 2005
Yes you're right, its defined that way cause the number of array elements is only known at run-time, BUT! I'm not allocating array space explicitly, I'm simply increasing the index as shown in the code above.
I've even tried something else like declaring the array as:

static struct prnc principal_know_key[5];

but I still got the same error. NOTHING seems to be working!
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:35 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC