S.No starting from 0
-
In Question/Answer Page, There is a section
Top Experts in 24hrs
andTop Experts this month
. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1. -
In Question/Answer Page, There is a section
Top Experts in 24hrs
andTop Experts this month
. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.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
-
In Question/Answer Page, There is a section
Top Experts in 24hrs
andTop Experts this month
. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.: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
-
: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
Obviously Array Index starts from 0. I am really feeling Good after knowing that real programmers starts Serial No from 0. Thanks.
-
In Question/Answer Page, There is a section
Top Experts in 24hrs
andTop Experts this month
. There Serial No Starting from 0. Is there any reason behind this. I think the serial No. must start from 1.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! -
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!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