#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
hi all..i want to know oops concepts clearly can any1 explain??
What is polymorphism what is it for and how is it used?
What is solid in oops?
Which is not an object oriented programming language?
why reinterpret cast is considered dangerous?
What is the benefit of oop?
what are the ways in which a constructors can be called?
can we make game by using c
What are the three main types of variables?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is the full form of oops?
What is the difference between a mixin and inheritance?
What is persistence in oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is the purpose of polymorphism?