还有其他常见的“c-like"吗?或非“c-like"具有非零索引数组位置的语言? [英] Are there other common "c-like" or non "c-like" languages with non zero index array position?
问题描述
C 编程语言被称为零索引数组语言.使用 0
可以访问数组中的第一项.例如 double arr[2] = {1.5,2.5}
数组 arr
中的第一项在位置 0. arr[0] === 1.5
1 基于索引的编程语言是什么?
C programming language is known as a zero index array language. The first item in an array is accessible using 0
. For example double arr[2] = {1.5,2.5}
The first item in array arr
is at position 0. arr[0] === 1.5
What programming languages are 1 based indexes?
我听说过这些语言从 1 开始而不是从 0 开始用于数组访问:Algol、Matlab、Action!、Pascal、Fortran、Cobol.完成了吗?
I've heard of the these languages start at 1 instead of 0 for array access: Algol, Matlab, Action!, Pascal, Fortran, Cobol. Is this complete?
具体来说,一个基于 1 的数组将使用 1 而不是零来访问第一项.
Specificially, a 1 based array would access the first item with 1, not zero.
推荐答案
可以在 维基百科.
ALGOL 68
APL
AWK
CFML
COBOL
Fortran
FoxPro
Julia
Lua
Mathematica
MATLAB
PL/I
Ring
RPG
Sass
Smalltalk
Wolfram Language
XPath/XQuery
这篇关于还有其他常见的“c-like"吗?或非“c-like"具有非零索引数组位置的语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!