#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
wow *b;
a.x = 22;
b = &a;
a.x = 23;
cout << b->x;
return 0;
}

Answer Posted / tiger

23

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the example of polymorphism?

552


How do you use inheritance in unity?

581


• What are the desirable attributes for memory managment?

1720


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


What is a function in oop?

623






What is meant by multiple inheritance?

729


Get me a number puzzle game-program

1688


What is abstraction in oops with example?

765


What is difference between pop and oop?

597


Why do while loop is used?

568


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1448


i got a backdoor offer in process global,Bangalore..Can i work with it?

2318


What is oops in simple words?

571


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6135


What are constructors in oop?

583