What is function overloading in C++?
No Answer is Posted For this Question
Be the First to Post Answer
What is object in c++ example?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Write a program which uses functions like strcmp(), strcpy()? etc
What is c++ namespace?
What is protected inheritance?
When copy constructor can be used?
Explain the register storage classes in c++.
Why do we use constructor?
Explain the difference between class and struct in c++?
What does extern mean in a function declaration in c++?
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
Explain how a pointer to function can be declared in C++?