What is function overloading in C++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is object in c++ example?

0 Answers  


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

0 Answers  


Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


What is c++ namespace?

0 Answers  


What is protected inheritance?

0 Answers  






When copy constructor can be used?

4 Answers   Symphony,


Explain the register storage classes in c++.

0 Answers  


Why do we use constructor?

0 Answers  


Explain the difference between class and struct in c++?

0 Answers  


What does extern mean in a function declaration in c++?

0 Answers  


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

2 Answers   Quark,


Explain how a pointer to function can be declared in C++?

0 Answers  


Categories