I have a code which looks like this and executes completely fine,
#include <stdio.h>
int main( )
{
int i = 3, j = 4, k, l ;
k = addmult ( i, j ) ;
l = addmult ( i, j ) ;
printf ( "\n%d %d", k, l ) ;
}
int addmult ( int ii, int jj )
{
int kk, ll ;
kk = ii + jj ;
ll = ii * jj ;
return ( kk, ll ) ;
}
My question is that can we define a function afterwards without defining function prototype at the top and how can a function return two values?