File: array.b

package info (click to toggle)
bc 1.07.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,512 kB
  • sloc: ansic: 7,601; sh: 1,468; yacc: 1,110; lex: 342; makefile: 90
file content (14 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"This tests arrays!
"
define p(x,y) {
  auto i;
  for (i=x; i<y; i++) a[i];
}

for (i=0; i<10; i++) a[i] = i;
j = p(0,10);

for (i=1000; i<1030; i++) a[i] = i;
j = p(1000,1030);
j = p(0,10);