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 some differences between an external iterator and an internal iterator?
Why is c++ still popular?
What are the advantages of using a pointer?
What is the difference between equal to (==) and assignment operator (=)?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the use of setprecision in c++?
What is an accessor in c++?
Is c++ the best programming language?
Which is most difficult programming language?
What are the four partitions in which c++ compiler divides the ram?
Can comments be nested?
what is C++ objects?
Define pre-condition and post-condition to a member function in c++?
Explain what is polymorphism in c++?
What is a friend function in c++?