#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



#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a..

Answer / tiger

22

Is This Answer Correct ?    11 Yes 4 No

Post New Answer

More OOPS Interview Questions

What is extreme programming?

2 Answers  


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


write a c++ code of diagonal matrix.

2 Answers  


What are different oops concepts?

0 Answers  


What is abstract class in oop?

0 Answers  






Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

0 Answers  


What is difference between data abstraction and encapsulation?

0 Answers  


Why do we use oop?

0 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


which feature are not hold visual basic of oop?

0 Answers   Ignou,


What is the difference between static polymorphism and dynamic polymorphism?

0 Answers  


Categories