Why doesn't C support function overloading?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it valid to address one element beyond the end of an array?

664


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1116


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2704


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1646


What is main () in c language?

586






What are loops in c?

544


find out largest elemant of diagonalmatrix

1640


What is meant by 'bit masking'?

877


What is difference between class and structure?

562


How can you read a directory in a C program?

643


shorting algorithmS

1792


What is the total generic pointer type?

715


What is malloc() function?

628


What is difference between constant pointer and constant variable?

617


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1832