Why does c# index from zero? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does c# index from zero?

24th Jul 2016, 1:16 AM
Connar
Connar - avatar
3 Answers
0
It's an inherent characteristic of how computers represent data. Remember that computers store numbers as 0's and 1's.
24th Jul 2016, 6:12 PM
Michael Timbes
Michael Timbes - avatar
0
@Michael Timbes no idea why I didn't think of that. Thank you
24th Jul 2016, 8:24 PM
Connar
Connar - avatar
0
Number starts from 0- infinity 0 is a positive integer. -1 -2 -3... are negative
6th Oct 2016, 7:33 AM
Jimoh Oluwasegun Olalekan
Jimoh Oluwasegun Olalekan - avatar