Sail E0 Webinar
Question


What will be the output of the following program?


#include
struct MyData
{
public:
int Addition(int a, int b = 10)
{
return (a *= b + 2);
}
float Addition(int a, float b);
};
int main()
{
MyData data;
cout
Options:
A .  12 12
B .  12 18
C .  3 14
D .  18 12
E .  Compilation fails.
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers