#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

Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


What are the 5 oop principles?

0 Answers  


what is difference between objects and function

1 Answers  


what is polymorpsim? what are its types?

8 Answers  


What is a class?

32 Answers   Infosys, TCS, Thylak,






What is destructor oops?

0 Answers  


What is an object?

14 Answers   HCL,


What is abstract class in oops?

0 Answers  


How can we use the preprocessor #if and #elseif.

2 Answers  


Which is better struts or spring?

0 Answers  


how to find the largest of given numbers in an array

2 Answers  


What are the benefits of interface?

0 Answers  


Categories