What will be the output of the following program?
Practice Operator Overloading –
What will be the output of the following program?
#include
const double CrackexamsConstant(const int, const int = 0);
int main() {
const int c = 2 ;
cout<< CrackexamsConstant(c, 10)<< " ";
cout<< CrackexamsConstant(c, 20)<< endl;
return 0;
}
const double CrackexamsConstant(const int x, const int y) {
return( (y + (y * x) * x % y) * 0.2);
}