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

Why cstdlib is used in c++?

1001


What are built-in functions? What is the syntax for the definition?

1035


Does std endl flush?

984


What is the difference between function overloading and operator overloading?

1044


How do you compile the source code with your compiler?

1017


Describe the advantage of an external iterator.

994


What is size_type?

984


What is friend class in c++ with example?

957


What is the difference between while and do while loop?

1096


What is the difference between passing by reference and passing a reference?

1031


What is the purpose of template?

1054


What is pointer in c++ with example?

1023


Explain the difference between static and dynamic binding of functions?

1013


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1109


Define anonymous class.

1035