Describe private, protected and public?
No Answer is Posted For this Question
Be the First to Post Answer
int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
What is virtual destructor ans explain its use?
What is extern c++?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;
Define copy constructor.
Define friend function.
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What do you mean by translation unit in c++?
What is const in c++?
What is virtual constructor paradigm?
What are the stages in the development cycle?