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
What is the disadvantage of using a macro?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
Why do we use constructor?
What is the use of function pointer?
What is a singleton c++?
what does the following statement mean? int (*a)[4]
What is the role of static keyword for a class member variable?
What operators can you overload in c++?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is a lambda function c++?
What is else syntax in c++?
Explain how overloading takes place in c++?
When are exception objects created?
Describe new operator and delete operator?
What is dynamic and static typing?