If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
No Answer is Posted For this Question
Be the First to Post Answer
Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.
What is lazy initialization in c++?
What are friend functions?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Define private, protected and public access control.
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??
Write about c++ storage classes?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What is the difference between const and constexpr?
What is the difference between a shallow copy and a deep copy?
Define namespace in c++?
What is the purpose of ios::basefield in the following statement?