#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;
}



#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow..

Answer / tiger

23

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is difference between inheritance and polymorphism?

0 Answers  


Why is object oriented programming so hard?

0 Answers  


what is virtual function in c++

6 Answers  


why c++ is called OOPS? waht is inherutance? what is compiler?

5 Answers  


why c++ is a highlevel language

3 Answers   Satyam, Tech Mahindra,


What is the difference between procedural programming and oops?

0 Answers  


What are virtual classes?

0 Answers  


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


The expansion of GNU

3 Answers  


1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage

2 Answers  


what is cast operator?

2 Answers   Microsoft,


difine hierarchical inheritance.

9 Answers   ASD Lab, TCS,


Categories