#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
Is data hiding and abstraction same?
What is destructor in oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is data binding in oops?
How do you answer polymorphism?
what are the ways in which a constructors can be called?
Why do we use encapsulation in oops?
What makes a language oop?
What are main features of oop?
Why multiple inheritance is not allowed?
What does no cap mean?
What is polymorphism used for?
Why is object oriented programming so hard?
Why is destructor used?
What is difference between multiple inheritance and multilevel inheritance?