Parameters example paage 28
This commit is contained in:
parent
3f7e449f7d
commit
42d016d230
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2024-11-02 Mert Gör <mertgor@masscollabs.xyz>
|
||||
|
||||
* c-basic/parameters.c: parameters example 1
|
||||
|
||||
2024-11-01 Mert Gör <mertgor@masscollabs.xyz>
|
||||
|
||||
* c-basic/C.pdf: Fonksiyonların Parametre Değişkenleri page 27
|
||||
|
|
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue