C · 490 bytes Raw Blame History
1 #include <stdio.h>
2
3 // Function declaration
4 int add(int a, int b);
5 int multiply(int x, int y);
6
7 // Function definitions
8 int add(int a, int b) {
9 return a + b;
10 }
11
12 int multiply(int x, int y) {
13 return x * y;
14 }
15
16 int main() {
17 int result1 = add(5, 3); // Press F12 on 'add' to jump to definition
18 int result2 = multiply(4, 7); // Press F12 on 'multiply' to jump to definition
19
20 printf("Addition: %d\n", result1);
21 printf("Multiplication: %d\n", result2);
22
23 return 0;
24 }