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

Cpp Programming Quiz 118 – What will be the output of the following program?

Question: What will be the output of the following program?

#include
class India
{
public:
struct Bix
{
int x;
float y;
void Function(void)
{
y = x = (x = 4*4);
y = --y * y;
}
void Display()
{
cout<< y << endl; } }B; }I; int main() { I.B.Display(); return 0; }

[A].0
[B].1
[C].-1
[D].Garbage value 

Answer: Option A