Professional Documents
Culture Documents
prime() function takes the positive number from the user and checks
whether the number is a prime number or not.
For example:
int test() { }
int test(int a) { }
float test(double a) { }
int test(int a, double b) { }
Here, the display() function is called three times with different type
or number of arguments.
The return type of all these functions are same but it's not necessary.
• https://www.w3schools.com/cpp/cpp_function_param.asp
• https://www.w3schools.com/cpp/cpp_function_overloading.asp
• https://www.programiz.com/cpp-programming/user-defined-
function-types
• https://www.programiz.com/cpp-programming/function-overloading
• https://www.programiz.com/cpp-programming/default-argument
• https://www.tutorialspoint.com/cplusplus/cpp_functions.htm
•