What is need of default arguments in function overloading in C++?
sohaib770
0
Newbie Poster
Recommended Answers
Jump to PostIs this what you are trying to do?
This is a very general example#include <iostream> #include <string> using namespace std; string myReturn( string in ) { return in; } int myReturn( int in ) { return in; } int main() { string strIn = "20"; int …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.