fork download
  1. int main() {
  2. int i;
  3. write("Variable i has type %t and value %O\n", i, i);
  4. // => Variable i has type int and value 0
  5.  
  6. float f;
  7. write("Variable f has type %t and value %O\n", f, f);
  8. // => Variable f has type int and value 0
  9.  
  10. string s;
  11. write("Variable s has type %t and value %O\n", s, s);
  12. // => Variable s has type int and value 0
  13.  
  14. array a;
  15. write("Variable a has type %t and value %O\n", a, a);
  16. // => Variable a has type int and value 0
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.06s 6588KB
stdin
Standard input is empty
stdout
Variable i has type int and value 0
Variable f has type int and value 0
Variable s has type int and value 0
Variable a has type int and value 0