what are the iterator and generic algorithms.
No Answer is Posted For this Question
Be the First to Post Answer
What is the need of a destructor?
Is c++ a software?
Will rust take over c++?
What are destructors?
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
How does work in c++?
What is virtual destructor ans explain its use?
Why should we use null or zero in a program?
What causes a runtime error c++?
Is swift faster than c++?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
What is an accessor in c++?