Is facebook written in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Write about the scope resolution operator?
Can a constructor be private?
What is std :: flush?
Is c or c++ more useful?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
what is multi-threading in C++?
How do you initialize a class member, class x { const int i; };
What is the difference between the functions memmove() and memcpy()?
How do you initialize a string in c++?
What is istream and ostream in c++?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
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