What happens when you attempt to compile and run the following code?
#include
using namespace std;
int mul (int a, int b=2)
{
int r;
r=a*b;
return (r);
}
int main ()
cout << mul(1) << mul(2,4);
return 0;
It prints: 2
It prints: 28
It prints: 8
It prints: 6
Submit