003 File Manager
Current Path:
/usr/src/contrib/bc/tests/bc/errors
usr
/
src
/
contrib
/
bc
/
tests
/
bc
/
errors
/
📁
..
📄
01.txt
(5.92 KB)
📄
02.txt
(647 B)
📄
03.txt
(2.63 KB)
📄
04.txt
(8 B)
📄
05.txt
(11 B)
📄
06.txt
(17 B)
📄
07.txt
(396 B)
📄
08.txt
(28 B)
📄
09.txt
(157 B)
📄
10.txt
(99 B)
📄
11.txt
(4.73 KB)
📄
12.txt
(53 B)
📄
13.txt
(536 B)
📄
14.txt
(21 B)
📄
15.txt
(38 B)
📄
16.txt
(2 B)
📄
17.txt
(4.03 KB)
📄
18.txt
(42 B)
📄
19.txt
(114 B)
📄
20.txt
(809 B)
📄
21.txt
(4.78 KB)
📄
22.txt
(148 B)
📄
23.txt
(5.02 KB)
📄
24.txt
(91 B)
Editing: 13.txt
#! /usr/bin/bc -q define z(a[]) { for (i = 0; i < l; ++i) { a[i] } } define x(a[]) { # Test for separate vars and arrays. auto a for (a = 0; a < l; ++a) { a[a] = -a } z(a[]) } define g(x[], y[]) { return x[0] - y[0] } define h(uto, x[]) { return g(x[], y[]) } define m(*x[], *y[]) { return x[0] / y[0] } define n(*y[], *x[]) { return m(x[], y[]) } for (i = 0; i < 101; ++i) { a[i] = i } a[104] = 204 l = length(a[]) for (i = 0; i <= l; ++i) { a[i] } z(a[]) x(a[]) z(a[]) l x[0] = 5 y[0] = 4 h(x[], y[])
Upload File
Create Folder