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

How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

2 Answers   Hexaware,


Which one would you prefer - a macro or a function?

0 Answers  


What are the key features in c programming language?

0 Answers  


What is the difference between %d and %*d in C

3 Answers  


i want to know the procedure of qualcomm for getting a job through offcampus

0 Answers   HCL,






What are the types of functions in c?

0 Answers  


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }

4 Answers   Vector, Vector India,


Is double link list a linear data structure? If Yes, Why?If No, Why?

4 Answers  


What are valid operations on pointers?

0 Answers  


Is it possible to execute code even after the program exits the main() function?

0 Answers  


Categories