a question related to the features of c++ and c RRS feed

  • Question

  • one of the features of c++ is function overloading .the compiler identifies the function based on number of the arguments or based on  ordinal positions of arguments..........but when it comes   to  case of c ,on what basis does the compiler identify the functions? (as function overloading is not present in c)

    Thursday, June 7, 2007 10:03 AM

All replies

  • it will simply result into an error saying multiple declarations
    Thursday, June 7, 2007 10:39 AM
  • In C polymorphism is not allowed, so you cannot declare same name, no matter how the function differentiates, same name is not allowed in C
    Thursday, June 7, 2007 2:10 PM
  • C does not support polymorphism. Both Function overloading and Opeator Overloading is not a concept of C, and also Run Tmie polymorphism (Dynamic Binding) is also not possible which is possible in C++ through the use of virtual functions using pointers to objects.
    Saturday, June 9, 2007 1:59 PM
  • wait till 18 june
    Wednesday, June 13, 2007 4:23 AM