Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
No Answer is Posted For this Question
Be the First to Post Answer
What is exception handling in C++?
How much is size of struct having 1 char & 1 integer?
When are exception objects created?
When do we run a shell in the unix system? How will you tell which shell you are running?
What are proxy objects in c++?
Difference between class and structure.
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
Explain the advantages of using friend classes.
given unsigned int ui1=3,ui2=7; what are the outputs of a)ui1 & ui2 b)ui1 && ui2 c)ui1 | ui2 d)ui1 || ui2 i also need the justification for the answers thank you
Brief explaination about #include<iostream.h>, cin and cout
What is an adaptor class in c++?
is throwing exception from a constructor not a good practice ?