Parameters example paage 28

This commit is contained in:
Mert Gör
2024-11-02 11:36:01 +03:00
parent 3f7e449f7d
commit 42d016d230
2 changed files with 21 additions and 0 deletions

17
c-basic/parameters.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
void foo(int a, int b)
{
printf("a = %d, b = %d\n", a, b);
}
int main()
{
int x = 10, y = 20;
foo(x,y);
foo(x + 10, y + 10);
foo(100, 200);
return 0;
}