#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
What is the example of polymorphism?
How do you use inheritance in unity?
• What are the desirable attributes for memory managment?
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
What is a function in oop?
What is meant by multiple inheritance?
Get me a number puzzle game-program
What is abstraction in oops with example?
What is difference between pop and oop?
Why do while loop is used?
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.
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is oops in simple words?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are constructors in oop?