Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you link a C++ program to C functions?

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


Please Help Members By Posting Answers For Below Questions

Write some differences between an external iterator and an internal iterator?

970


Why is c++ still popular?

987


What are the advantages of using a pointer?

1021


What is the difference between equal to (==) and assignment operator (=)?

1018


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

948


What is the use of setprecision in c++?

949


What is an accessor in c++?

1020


Is c++ the best programming language?

961


Which is most difficult programming language?

1030


What are the four partitions in which c++ compiler divides the ram?

1167


Can comments be nested?

985


what is C++ objects?

1151


Define pre-condition and post-condition to a member function in c++?

1088


Explain what is polymorphism in c++?

1081


What is a friend function in c++?

1477