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
Why cstdlib is used in c++?
What are built-in functions? What is the syntax for the definition?
Does std endl flush?
What is the difference between function overloading and operator overloading?
How do you compile the source code with your compiler?
Describe the advantage of an external iterator.
What is size_type?
What is friend class in c++ with example?
What is the difference between while and do while loop?
What is the difference between passing by reference and passing a reference?
What is the purpose of template?
What is pointer in c++ with example?
Explain the difference between static and dynamic binding of functions?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
Define anonymous class.