How do we call a C function from a C++ program .
Thanx in anticipation
How do we call a C function from a C++ program .
Thanx in anticipation
The same way you call a C++ function? Besides, this is a C++ question, and conveniently, there is a board for that!
Quzah.
Then you just call itCode:#ifdef __cplusplus extern "C" { #endif void my_c_function ( int ); #ifdef __cplusplus } #endif
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.