#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
Get me a number puzzle game-program
Why do we use encapsulation in oops?
What is the difference between abstraction and polymorphism?
Why is polymorphism used?
when to use 'mutable' keyword and when to use 'const cast' in c++
what are the different types of qualifier in java?
What is difference between oop and pop?
Which type does string inherit from?
What is property in oops?
Why is there no multiple inheritance?
Why do we need polymorphism in c#?
What is encapsulation in simple terms?
Write a program to reverse a string using recursive function?
What is destructor example?
How to improve object oriented design skills?