Questions Concepts
GitHub icon

Zero-based numbering

Zero-based numbering - language feature

< >
Example from Speedie:
printline ["a", "b", "c"][0] // prints "a"

Languages with Zero-based numbering include Java, JavaScript, Python, C, C++, TypeScript, Objective-C, Cython, C3, Speedie, progsbase, Slope, Pizza, Oracle Java, Deesel, Tick C

Languages without Zero-based numbering include Fortran, R, COBOL

This question asks: Does the language start counting from 0, rather than 1?

Read more about Zero-based numbering on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 Logout