#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 encapsulation selenium?
Can we define a class within the interface?
What do you mean by overloading?
Why is polymorphism used?
What is the difference between encapsulation and polymorphism?
What is polymorphism what are the different types of polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is destructor in oop?
What is difference between multiple inheritance and multilevel inheritance?
Write a program to sort the number with different sorts in one program ??
Can destructor be overloaded?
Why do we use inheritance?
Write a program to reverse a string using recursive function?
What is polymorphism in oops with example?