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
Write a program to add three numbers in C++ utilizing classes.
What are the steps in the development cycle?
Difference between a copy constructor and an assignment operator.
How do I write a c++ program?
What is the use of string in c++?
Can a Structure contain a Pointer to itself?
What parameter does the constructor to an ofstream object take?
How can you tell what shell you are running on unix system?
Define a constructor - what it is and how it might be called (2 methods)?
Explain how functions are classified in C++ ?
Differentiate between an external iterator and an internal iterator?
How do we balance an AVL Tree in C++?
Name the debugging methods that are used to solve problems?
Is c++ low level?
What is a breakpoint?