Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming Quiz 163 – Which of the following statement is correct about the program given below?

Question: Which of the following statement is correct about the program given below?

#include
class IndiabixSample
{
private:
int AdditionOne(int x, int y = 1)
{
return x * y;
}

public:
int AdditionTwo(int x, int y = 1)
{
return x / y;
}
};
int main()
{
IndiabixSample objBix;
cout<

[A].The program will print the output 32 0.
[B].The program will print the output 32 garbage-value.
[C].The program will print the output 32 1.
[D].The program will report compile time error. 

Answer: Option D