float_reference 202 B

12345678910111213141516
  1. void test(float* t) {
  2. *t = 8.0;
  3. *t += 1.0;
  4. }
  5. void main() {
  6. float a = 5.0;
  7. float* b = &a;
  8. a = 6.0;
  9. print a;
  10. print *b;
  11. test(&a);
  12. test(b);
  13. print a;
  14. print *b;
  15. }