Why this function call works?
The function func(int,int)
is declared as taking integers but even when calling it with double is working. Why is it so?
#include<iostream>
using namespace std;
void func(int a,int b){
cout<<"a is "<<a;
cout<<"\nb is "<<b;
}
int main(){
func(12.3,34.3);
}