i want it to print out 4 is larger than 2 but it prints out 2 is larger than 2293572
#include <stdio.h>
#include <stdlib.h>
void largest(int num1, int num2, int *larger)
{
if(num1 > num2) {
*larger = num1;
}
else{
*larger = num2;
}
}
int main()
{
int num;
largest(4,2,&num);
printf(" %d is larger %d");
}