Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.2
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Snippets

    Get the number of elements in an array

    Download button


    Downloads: 393  Tell us about an update
    User Rating:
    Rated by:
    Good (3.7/5)
    15 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Voodoo Doll | More scripts
    www.dreamincode.net
    Freeware 

    Windows / Linux / BSD / Solaris
    N/A
    C/C++
    June 26th, 2007, 07:02 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Get the number of elements in an array description

    Get the number of elements in an array - The old way was to take the size of the entire array and divide it by the size of a single element.

    The old way was to take the size of the entire array and divide it by the size of a single element.

    With templates, you can convert an array of T to an array of char, and the size of the array of char gives you the number of elements! The result is intuitive and really neat.



    TAGS:

    elements array | number elements | array snippets | number | elements | array

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM