List the merits and demerits of declaring a nested class in C++?
class professor {}; class teacher : public virtual professor {}; class researcher : public virtual professor {}; class myprofessor : public teacher, public researcher {}; Referring to the sample code above, if an object of class "myprofessor" were created, how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 e) 4
How do you define/declare constants in c++?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Are php strings immutable?
What are special characters c++?
What is a c++ map?
Can we specify variable field width in a scanf() format string? If possible how?
Explain one method to process an entire string as one unit?
Explain data encapsulation?
What is setw manipulator in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;