diff options
| author | David Moc <personal@cdatgoose.org> | 2026-03-05 23:38:49 +0100 |
|---|---|---|
| committer | David Moc <personal@cdatgoose.org> | 2026-03-05 23:38:49 +0100 |
| commit | 0385817bb1301a778bb33f8405a435293b9f8905 (patch) | |
| tree | 53f4b6f13e393bd368c37ba4363826b46940dfd3 /tests/function_call.c | |
| parent | 262abf9b552a168ef3ae91f91af97683f16420a7 (diff) | |
Pushing to repo for safety.
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; +} |
