#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
a.x = 22;
int c = a.x;
int *b = new int;
cout << c;
return 0;
}
option:
No output
0
22
-(11)
Will not compile
Answer Posted / tiger
22
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is polymorphism and its types?
Can we create object of abstract class?
State what is encapsulation and friend function?
What are the components of marker interface?
What are the 4 main oop principles?
2. Give the different notations for the class.\
What is a superclass in oop?
What is a function in oop?
How to hide the base class functionality in Inheritance?
Why is destructor used?
What are the three main types of variables?
Why we use classes in oop?
What does it mean when someone says I oop?
Is enum a class?
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?