ex-return-given-expr.ox (184B)
1 int gimme(int ret_value) { 2 int ret = ret_value * 2; 3 return ret; 4 } 5 6 void main() { 7 print("expected returned value of 20 = (6 + 6) * 2 - 4:"); 8 print(gimme(6 + 6) - 4); 9 }
oxThe Ox programming language, compiler and tools (WIP) | |
| Log | Files | Refs | README | LICENSE |