/* ////////////////////////////////////////////////////////////////// // Sample #1: max // A sample Program to see a function work! ////////////////////////////////////////////////////////////////// */ #include int max( int, int ); int main (){ int x = 31; int y = 513; int z; z = max( x, y ); printf("The max of %d and %d is %d", x, y, z ); return 0; } int max( int a, int b ){ if( a > b ) return a; else return b; } ----------------------------cut here-------------------------------- /* ////////////////////////////////////////////////////////////////// // Sample #2: max // A sample Program to see a function call another Function! ////////////////////////////////////////////////////////////////// */ #include int max( int, int ); int main (){ int x = 31; int y = 513; printf("The max of %d and %d is %d", x, y, max( x, y ) ); return 0; } int max( int a, int b ){ if( a > b ) return a; else return b; }