Parameters example paage 28
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user