#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 are the advantanges of modularity

2 Answers  


Which language is pure oop?

0 Answers  


What are the 4 main oop principles?

0 Answers  


What is the expansion of OOPS?

24 Answers   TCS,


What is object and class in oops?

0 Answers  






write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

0 Answers   Microsoft, TCS,


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


What is inheritance write a program to show use of inheritance?

0 Answers  


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


What is the advantage of oop over procedural language?

0 Answers  


what is the realstic modeling?

1 Answers  


4. What do you mean by a prototype? Define analysis prototype

1 Answers  


Categories