1234567891011121314151617181920212223242526 |
- void main() {
- int start = 0;
- int* a = new int[4];
- int** b = &a;
- int* c = *b;
- test(a == c);
- test(&start != a);
-
- test(length(a));
- test(length(b));
- test(length(c));
-
- a[0] = 50;
- a[1] = 60;
- a[2] = 70;
- a[3] = 80;
-
- test(a[0]);
- test(a[1]);
- test(a[2]);
- test(a[3]);
-
- test(*a);
-
- delete a;
- }
|