http://www.ideone.com/JQFNh CHECK THE OUTPUT THERE IS NO AMBIGUITY BUT PLEASE EXPLAIN THE RESULTS
On Sun, Nov 20, 2011 at 11:00 PM, Akash Coder <[email protected]>wrote: > it wont work > > even this wont > > function(char a[]) > function (char *) > coz the two forms are interchangeable > > > On Sun, Nov 20, 2011 at 10:12 PM, saurabh singh <[email protected]>wrote: > >> wont work......Thre is no way compilers gonna guess which function to >> call.The const qualifier only guarantees that the value at the address wont >> be altered inside the function.That has nothing to do with calling, >> >> >> On Sun, Nov 20, 2011 at 9:50 PM, rahul vatsa <[email protected]>wrote: >> >>> yes, it will work. >>> >>> >>> On Sun, Nov 20, 2011 at 9:12 PM, Akash Coder <[email protected] >>> > wrote: >>> >>>> no it wont work ... const is not a datatype. its a qualifier >>>> >>>> >>>> On Sun, Nov 20, 2011 at 7:49 PM, rahul sharma >>>> <[email protected]>wrote: >>>> >>>>> void fun(char *) >>>>> void fun(const char *) >>>>> >>>>> >>>>> >>>>> is this overloading works or these are same type of arguments?????? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Algorithm Geeks" group. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Algorithm Geeks" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> Saurabh Singh >> B.Tech (Computer Science) >> MNNIT ALLAHABAD >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- *UTKARSH SRIVASTAV CSE-3 B-Tech 3rd Year @MNNIT ALLAHABAD* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
