Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. S.No starting from 0

S.No starting from 0

Scheduled Pinned Locked Moved Site Bugs / Suggestions
question
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AshishChaudha
    wrote on last edited by
    #1

    In Question/Answer Page, There is a section Top Experts in 24hrs and Top Experts this month. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.

    N C V 3 Replies Last reply
    0
    • A AshishChaudha

      In Question/Answer Page, There is a section Top Experts in 24hrs and Top Experts this month. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      Real programmers start lists at 0.


      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

      1 Reply Last reply
      0
      • A AshishChaudha

        In Question/Answer Page, There is a section Top Experts in 24hrs and Top Experts this month. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #3

        :sigh: What number does an array index start from. Maybe the joke is getting old...

        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

        A 1 Reply Last reply
        0
        • C Chris Maunder

          :sigh: What number does an array index start from. Maybe the joke is getting old...

          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

          A Offline
          A Offline
          AshishChaudha
          wrote on last edited by
          #4

          Obviously Array Index starts from 0. I am really feeling Good after knowing that real programmers starts Serial No from 0. Thanks.

          1 Reply Last reply
          0
          • A AshishChaudha

            In Question/Answer Page, There is a section Top Experts in 24hrs and Top Experts this month. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            I think it is a genuine aesthetic issue. For the user and display it should be (1) and for the program internally, it can continue zero-indexing. A quick patch like <%=(i+1%> if you are using a repeater control for this should help remedy it.

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

            C 1 Reply Last reply
            0
            • V Vasudevan Deepak Kumar

              I think it is a genuine aesthetic issue. For the user and display it should be (1) and for the program internally, it can continue zero-indexing. A quick patch like <%=(i+1%> if you are using a repeater control for this should help remedy it.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #6

              Vasudevan Deepak Kumar wrote:

              A quick patch like
              <%=(i+1%>
              if you are using a repeater control for this should help remedy it.

              I'm biting my tongue here, Vasudevan.

              cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups