Articles added in Mathematics Lab | Cyber Lab is now open | Astronomy Lab is now open | VLSI Lab is now open | 120 SEO Tips article published | More exciting articles coming soon!

Function overloading

In C++, we can have more than one function with the same name in a program provided either:
--> Number of arguments are different or
--> Their data types are different.
This feature is known as function overloading.

When a function is called, the compiler selects the function for a function call by considering the exact match for arguments.
To achieve function overloading either functions should be defined before main or their prototypes should be given before main.

CACKLE comment system

Programming Resources
Computer Networking Fundamentals Android Application