Interview Questions

Can I create my own functions in C++?

Python Questions and Answers


(Continued from previous question...)

Can I create my own functions in C++?

Yes, using the C compatibility features found in C++. Place extern "C" { ... } around the Python include files and put extern "C" before each function that is going to be called by the Python interpreter. Global or static C++ objects with constructors are probably not a good idea.

(Continued on next question...)

Other Interview Questions