I know that c++ supports function overriding . But we can do function overriding in c also?
I fell that its not possible in C. Can any one give your comments on this?
Thanks in advance.
I know that c++ supports function overriding . But we can do function overriding in c also?
I fell that its not possible in C. Can any one give your comments on this?
Thanks in advance.
It is not natively possible in C, but as a matter of course when fully simulating OOP in C, it can be done, e.g., by implementing a virtual function table.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
No, it is not possible.
Quite a few people confuse the concepts of function overriding and function overloading. However, regardless of which one you have in mind, C supports neither.
It is possible to simulate the behaviours, but the capabilities are not native to C.