#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 are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


is there any choice in opting subjects like 4 out of 7

0 Answers  


Program to check whether a word is in all capital letters

1 Answers  


What is a scope operator and tell me its functionality?

3 Answers   emc2,


Why static functions always uses static variables?

3 Answers  






What is nutshell in programming language?

1 Answers   Satyam, Tech Mahindra,


What is property in oops?

0 Answers  


for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)

2 Answers  


What are the components of marker interface?

0 Answers  


Why do we need polymorphism in c#?

0 Answers  


Why multiple inheritance is not allowed?

0 Answers  


inheritence with example

1 Answers  


Categories