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

Explain what is polymorphism in c++?

1129


What is different in C++, compare with unix?

1102


how to connect with oracle 9i with server in socket program in c/c++

2352


Define a nested class. Explain how it can be useful.

1084


What is == in programming?

1024


What does floor mean in c++?

1064


What are the important differences between c++ and java?

1154


List the issue that the auto_ptr object handles?

1026


program explaining feautures of c++

2442


Why are pointers not used in c++?

1139


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

1082


What is the use of typedef?

1102


What is setf in c++?

1090


Do you know about C++ 11 standard?

1090


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

1236