How did c++ start?
No Answer is Posted For this Question
Be the First to Post Answer
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Is c++ a float?
What is the function of I/O library in C++ ?
What are the types of STL containers?
What does it mean to declare a member variable as static?
What is c++ & why it is used?
Is there any difference between dlearations int* x and int *x? If so tell me the difference?
When does a name clash occur?
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
What is the precedence when there is a global variable and a local variable in the program with the same name?
Explain about templates of C++.
Differentiate between declaration and definition in C++?