#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
Example for 4 pillar of oops like, Inheritance,Poly,Abstraction,Encabsulation ?
the difference between new and malloc
What is object and class in oops?
A file pointer always contains the __________ of the file
What is inheritance in oop?
what is the application of oops?
can you give the dynamic polymorphism types?
What is the expansion of OOPS?
What is polymorphism what are the different types of polymorphism?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,
some one give d clear explanation for polymorphism