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
Explain what are the sizes and ranges of the basic c++ data types?
Which software is used for c++ programming?
What is a multiset c++?
Is there finally in c++?
Can comments be longer than one line?
Why null pointer is used?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
Explain bubble sorting.
Write a c program for binary addition of two 8 bit numbers.
what is a class? Explain with an example.
Why do we use double in c++?
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is heap sort in c++?
What is setf in c++?
What operators can you overload in c++?