Why doesn't C support function overloading?

Answers were Sorted based on User's Feedback



Why doesn't C support function overloading?..

Answer / hrpynux@gmail.com

Function Overloading allows us to have multiple functions with the same name but with different function signatures in our code. These functions have the same name but they work on different types of arguments and return different types of data. ... Therefore, C does not support function overloading.

Is This Answer Correct ?    0 Yes 1 No

Why doesn't C support function overloading?..

Answer / hrpynux@gmail.com

Function Overloading allows us to have multiple functions with the same name but with different function signatures in our code. These functions have the same name but they work on different types of arguments and return different types of data. ... Therefore, C does not support function overloading.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

what is the difference between i++ and ++i?

5 Answers  


why division operator not work in case of float constant?

2 Answers  


Explain setjmp()?

0 Answers  


What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack

6 Answers  


how to write a c program to print list of fruits in alpabetical order?

0 Answers  


What is masking?

0 Answers  


What is data type long in c?

0 Answers  


What is the time and space complexities of merge sort and when is it preferred over quick sort?

0 Answers   Amazon,


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

4 Answers   Infosys, TCS,


What are the different types of control structures in programming?

0 Answers  


Categories