In which of the following languages is function overloading not possible?

In which of the following languages is function overloading not possible?

a) C
b) C++
c) Java
d) Python

Answer:

a) C

Explanation:

Function overloading, which allows multiple functions with the same name but different parameters, is not supported in C. This feature is available in languages like C++, Java, and Python, where the compiler can distinguish between functions based on their parameter lists. In C, each function must have a unique name, which limits the ability to overload functions.

Understanding the limitations of C compared to other languages is crucial for writing effective and error-free code in C programming.

Reference links:

https://www.rameshfadatare.com/learn-c-programming/

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top