Parameters example paage 28
This commit is contained in:
17
c-basic/parameters.c
Normal file
17
c-basic/parameters.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user