C++ Questions and Answers - 2
Question: 6
How are functions invoked in function overloading?
Look for the exact match of a function prototype with that of a function call statement.
In case an exact match is not available, it looks for the next nearest match.
That is, the compiler will promote integral data promotions and then match the call statement with function prototype.
Question: 7
What does the term operator overloading refer to?
The term operator overloading, refers to giving additional functionality to the normal C++ operators like +, ++, -, --, +=, -=, *, <, >.
Question: 8
What are the possible integral promotions while invoking overloaded functions?
Char data type can be converted to integer/float/double.
Int data type can be converted to char/double/float.
Float data type to integer/double/char.
Double data type to float or integer.
- C++ Interview Questions and Answers for Experienced
- Top 200+ C++ Interview Questions and Answers
- C++ Interview Questions and Answers for Freshers
- Advanced C++ Programming Interview Questions and Answers
- C++ Language Interview Questions for Experienced Pdf
- C++ Programs Asked in Interview for Freshers
- C++ Interview Questions and Answers Pdf
- C++ Language Interview Questions and Answers for Freshers Pdf
- C++ Questions and Answers
- Top 250+ C++ Constructor and Destructor Programming Interview Questions
- C++ basic interview questions and answers pdf
- C++ Programming Interview Questions and Answers
- C++ Technical Interview Questions and Answers
- Top 200+ Advanced C++ Interview Questions 2020-2021
- C++ Lab Viva-Practical Exams Questions and Answers
- C++ Coding Interview Questions and Answers
Electromagnetic Induction Questions & Answers Pdf More
A.C. Basics and Networks Quiz Questions & Answers Pdf More
Signals and Systems Quiz Questions and Answers Pdf More
Signals and Systems MCQ Questions and Answers Pdf More
Electrical Power Sources Quiz Questions & Answers Pdf More
TRB Old Question Papers for History Study Materials Free Download More
100+ Statement and Assumptions Questions and Answers More
Top 100+ Blood Relation Quiz Questions More
TNPSC Biology Model Question Paper in Tamil and English More
Physics MCQ Questions and Answers More