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
How the programmer of a class should decide whether to declare member function or a friend function?
What are the advantages of using friend classes?
What is a responder chain?
What is #include cmath?
What is the protected keyword used for?
Comment on assignment operator in c++.
Explain register storage specifier.
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is polymorphism & list its types in c++?
How can we access protected and private members of a class?
Is dev c++ a good compiler?
What it is and how it might be called (2 methods).
Why is it necessary to use a reference in the argument to the copy constructor?
What is the difference between global variables and static varables?
Can you use the function fprintf() to display the output on the screen?