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

main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); } what is the output?

10 Answers   Ramco,


What is c mainly used for?

0 Answers  


Write a program in c using only loops to print * * * * * *******

2 Answers   IBM,


What was noalias and what ever happened to it?

0 Answers  


code for copying two strings with out strcpy() function.

6 Answers  






What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

5 Answers   CCEM, TCS,


True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type

7 Answers  


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

0 Answers  


Find if a number is power of two or not?

1 Answers  


what are the static variables

8 Answers   HCL, iFlex, TCS, Wipro,


What is c language in simple words?

0 Answers  


Do variables need to be initialized?

0 Answers  


Categories