DAVID G. SIMPSON

Personal Web Site

 
Home
Blog
Personal
Professional
Software
Photos
Reference
Nanopedia
Wiki
Contact Me

NASA Site
PGCC Site
Purdue Site
SCHS Site
Esperanto
Moon Rocks
S-M Comics
Mouse Site
Art Gallery
   

Programming Language Summary

Arrays

 Language  Array Index Origin  Indexing Syntax(4) 
 APL  1(1)  A[r;c] 
 BASIC  1  A(r,c) 
 C, C++  0  A[r][c] 
 Fortran  1(2)  A(r,c) 
 IDL  0  A[c,r] 
 Java  0  A[r][c] 
 Mathematica  1  A[[r,c]] 
 Matlab  1  A[r,c] 
 Pascal  Any(3)  A[r][c] 
 Perl  0  A[r][c] 
 Python  0  A[r,c] 

(1)  Can be changed by setting ⎕IO.
(2)  Can be changed by specifiying a lower index, as in A(0:5).
(3)  Both an upper and lower index are specified for arrays in Pascal.
(4)  Here r = row, c = column.


Contact Information

I may be contacted at:
 

Copyright © 2006 David G. Simpson

http://www.DavidGSimpson.com

Webmaster: David G. Simpson
Page last updated: February 17, 2016.