Why C doesnt support function overloading

Questions by pushkarraj2

Showing Answers 1 - 3 of 3 Answers

Amritanshu Agrawal

  • Sep 5th, 2006
 

Hi all,

The reason behind function overloading is this that the compiler rename all the function on the application. This is called as "name mangling".Like c++,JAVA compilers do.

But the c compiler never mangle the name so we can't overload any function in C.

  Was this answer useful?  Yes

pushkar

  • Sep 6th, 2006
 

hello sir this is the question asked by me in an interview even i told them what you told me but after listening my answer they again asked me that is ok but what is the reason behind it.

  Was this answer useful?  Yes

jose

  • Oct 19th, 2006
 

overloading is polymorphism which is one of the characteristics of Object oriented programming. C is not and object oriented language like C++ or Java. Therefore, no overloading, inheritance, etc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions