In this code compiler says "type mismatch" in function. There are two diff data type in function one int and one Float. Is it possible to use two diff values or i need to take both of same type. plz rply
Thanks
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
float b=5.5,multiply;
clrscr();
printf("Enter the int");
scanf("%d",&a);
printf("Enter the float");
scanf("%f",&b);
multiply=prod(a,b);
printf("%f",multiply);
getch();
}
prod(int x,float y)
{
float product;
product=x*y;
return(product);
}