Thread: Checking maximum values for dynamic array...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    32

    Checking maximum values for dynamic array...

    In order to optimize my codes, I've creted a dynamic token array....however I do not know the maximum value for this array....Is there any way to check its max array value? I tried using printf(), but even though if I were to print array up to 1000, no error nor terminating error occurs.....so maybe printf cannot be used for checking...

    _____

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What? What exactly is a "dynamic token array", and what value are you trying to find? Liken this to a standard array of a given type. Are you asking what the maximum value for that type is, or the maximum number of elements in the array, or the maximum value of the current elements in the array (ie: highest value stored so far)? What exactly?

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 04:23 AM
  2. Replies: 12
    Last Post: 04-12-2009, 05:49 PM
  3. question about multidimensional arrays
    By richdb in forum C Programming
    Replies: 22
    Last Post: 02-26-2006, 09:51 AM
  4. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM