What is the output of this prog. ?
struct A { A(){ cout << \"A\"; } };
struct B { B(){ cout << \"B\"; } };
struct C { C(){ cout << \"C\"; } };
struct D { D(){ cout << \"D\"; } };
struct E : D { E(){ cout << \"E\"; } };
struct F : A, B
{
C c;
D d;
E e;
F() : B(), A(),d(),c(),e() { cout << \"F\"; }
};
Answer Posted / shikha kataria
this program doesnot contain main() function.
so it cannot run
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is a stack? How it can be implemented?
Define whitespace in C++.
Write a struct time where integer m, h, s are its members?
What is std :: endl?
Do you know the use of vtable?
Can we delete this pointer in c++?
What is a class template?
What is the precedence when there is a global variable and a local variable in the program with the same name?
Does there exist any other function which can be used to convert an integer or a float to a string?
Is c++ still in demand?
What is data abstraction? How is it different from data encapsulation?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What are the operators in c++? What is the extraction operator and what does it do? What is low level language in simple words?