#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 the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


what is the function of 'this' operator ?

7 Answers   Wipro,


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


What is polymorphism? Explain with an example.

48 Answers  


what is the difference between inter class and abstract class...?

0 Answers  


What are the 3 principles of oop?

0 Answers  


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


What is polymorphism explain?

0 Answers  


How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


Differences between inline functions and non-inline functions?

4 Answers   Ness Technologies,


What is multiple inheritance?

9 Answers   TCS,


Categories