How do you add an element to a set in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Can notepad ++ run c++?
why all c++ program must have default constructor?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Define a constructor?
How many static variables are created if you put one static member into a template class definition?
write a programme to get a character and thier ASCII value
How would you represent an error detected during constructor of an object?
How many storage classes are available in C++?
Is set c++?
Why is c++ still best?
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
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