/* Example for category III of functions */
# include < stdio.h >
Add ( a, b )
int a,b;
{
int c;
c=a+b;
return c;
}
main( )
{
int x,y,z;
printf (" \n Enter the value for x & y " );
scanf( "%d%d", &x, &y );
z=Add( x, y );
printf ( " \nResult is %d", z );
}
# include < stdio.h >
Add ( a, b )
int a,b;
{
int c;
c=a+b;
return c;
}
main( )
{
int x,y,z;
printf (" \n Enter the value for x & y " );
scanf( "%d%d", &x, &y );
z=Add( x, y );
printf ( " \nResult is %d", z );
}
Comments
Post a Comment