View on GitHub How to use function parameters and arguments in C Language Function On this page On this page Function Output ❮ Previous Next ❯ Function #include <stdio.h> void func(int a, int b); int main() { int x = 10, y = 20; func(x, y); printf("x = %d, y = %d\n", x, y); return 0; } void func(int a, int b) { a++; b--; printf("a = %d, b = %d\n", a, b); } Output a = 11, b = 19 x = 10, y = 20 ❮ Previous Next ❯