hi i just started c programming and i am stuck on a question
Write a void C function called largest that takes two integers passed by value and returns the larger of the two using a third integer parameter which is passed by reference.
this is what i came up so far :
#include <stdlib.h>
#include <stdio.h>
void diff();
void diff(int num1, int num2)
{
printf("enter 2 numbers \n");
scanf("%d %d", &num1,&num2);
if(num1 > num2) {
printf(" %d is larger than %d ",num1,num2);
}
else{
printf(" %d is larger than %d ",num2,num1);
}
}
int main()
{
im stuck on what to do next anyone can help