#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

Explain the advantages of inheritance.

0 Answers   TCS,


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


string is a class or data type in java?

3 Answers  


What is oops?what is its use in software engineering?

0 Answers  


why we call c++ is object oriented lanaguage

7 Answers   HCL,






define oops with class and object

5 Answers   HCL, Tech Mahindra,


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

0 Answers  


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,


What is multiple inheritance? Give Example

6 Answers   Mind Tree,


Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?

2 Answers  


Categories