KyaPoocha.com

Huge Collection of Interview Questions


What is name mangling in C++? 

The process of encoding the parameter types with the function/method name into a unique name is called name mangling. The inverse process is called demangling.

For example Foo::bar(int, long) const is mangled as `bar__C3Fooil’.

For a constructor, the method name is left out.
That is Foo::Foo(int, long) const is mangled as `__C3Fooil’.



If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |