Okay, so here is the code.
#include <stdio.h>
int addmult (int,int);
int main (void)
{
int i=3,j=4,k,l;
k = addmult(i,j);
l = addmult(i,j);
printf("%d %d\n",k,l);
return 0;
}
int addmult ( int ii, int jj )
{
int kk,ll;
kk = ii + jj;
ll = ii*jj;
return(kk,ll);
}
How is it that a function is returning two things simultaneously in C?
Edit: This code is perfectly working. I wish to know, why is it working?