Answer Posted / nikhil upadhyay
By using the extern "C" linkage specification around the C function declarations.
Programmers should know about mangled function names and type-safe linkages. Then they should explain how the extern "C" linkage specification statement turns that feature off during compilation so that the linker properly links function calls to C functions. Another acceptable answer is "I don't know. We never had to do that." Merely describing what a linker does indicates that the programmer does not understand the issue that underlies the question.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which bitwise operator is used to check whether a particular bit is on or off?
What is the latest version on c++?
What is ios flag in c++?
Can we run c program in turbo c++?
What is singleton class in c++?
Do you know what is overriding?
What is flush c++?
What are friend classes?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Explain one-definition rule (odr).
Can I learn c++ without learning c?
What's the "software peter principleā?
What are inline functions? What is the syntax for defining an inline function?
What is the C-style character string?
How would you use the functions memcpy(), memset(), memmove()?