diff options
Diffstat (limited to 'tests/function_call.c')
| -rw-r--r-- | tests/function_call.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/function_call.c b/tests/function_call.c new file mode 100644 index 0000000..1af6ef8 --- /dev/null +++ b/tests/function_call.c @@ -0,0 +1,14 @@ +int add(int a, int b) { + return a + b; +} + +int multiply(int x, int y) { + return x * y; +} + +int main() { + int result1 = add(3, 4); + int result2 = multiply(2, 5); + int result3 = add(result1, result2); + return result3; +} |
