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