C Functions
Functions are blocks of code that perform a number of pre-defined commands to accomplish something productive. You can either use the built-in library functions or you can create your own functions.
Example 1
#include <stdio.h> int mult ( int x, int y ); int main() { int x; int y; printf( "Please input two numbers to be multiplied: " ); scanf( "%d", &x ); scanf( "%d", &y ); printf( "The product of your two numbers is %d\n", mult( x, y ) ); getchar(); } int mult (int x, int y) { return x * y; }
page_revision: 0, last_edited: 1206021140|%e %b %Y, %H:%M %Z (%O ago)





