Question
How do you link a c++ program to c functions?

Answers

By using the extern “C” linkage specification around the C function declarations.
You should know about mangled function names and type-safe linkages. Then you 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.
    Your Comment




More computer science engineering Questions..
To what does message protocol refer?

What is operator overloading?

Explain the isa and hasa class relationships. How would you implement each in a class design?

What is polymorphism?

When should you use multiple inheritance?

What is the difference between c and c++ ? would you prefer to use one over the other ?

How is memory allocated/deallocated in c ? how about c++ ?

What do the keyword static and const signify?

What are the differences between a c++ struct and c++ class?

Compare and contrast c and c++.?

What are class variables?

What are instance variables?

What is uml?

How does throwing and catching exceptions differ from using setjmp and longjmp?

In c++ what is a constructor? a destructor?

When is a template a better solution than a base class?

What is the difference between a shallow copy and a deep copy?

What is a super-class?

What is your reaction to this line of code?

What is an instance?



Search
Can you Answer!!
  • Q The Mauryan Empire was established in?
  • Q What is the type (or types) of the values that result from its evaluation(s)?
  • Q Main Gaseous pollutant of thermal power plants is–
  • Q How can a young person learn what job might be good for him or her?
  • Q What is Chart of Accounts in SAP?
  • Q What is meant by child to child programme?
  • Q What are peerless components?
  • Q How you created your test script?
  • Q Sindh and Multan were conquered by Muhammad bin Qasim under the reign of Islamic Caliph:
  • Q Programming language named after 17th cent French mathematician
  • Q Can a class extend more than one class?