Mega Code Archive

 
Categories / C Tutorial / Function
 

Parameter passing

Information can be passed into function. #include<stdio.h> main ( ) {     int i;     i = 0;     printf (" The value of i before call %d \n", i);     f1 (i);     printf (" The value of i after call %d \n", i); } f1 (int k) {     k = k + 10; } The value of i before call 0 The value of i after call 0