#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 does the keyword "static" mean?

4 Answers   TCS,


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


What is the main feature of oop?

0 Answers  


some one give d clear explanation for polymorphism

3 Answers  


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


write knight tour problem which is present in datastructure

0 Answers  


what is the drawback of classical methods in oops?

0 Answers  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


what is code for call by value and call by reference?

1 Answers  


What is the real time example of inheritance?

0 Answers  


is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


what is the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,


Categories