Science, asked by monishachinnu8888, 1 year ago

What is the use of "extern C" in C++ code?

Answers

Answered by spidy29
0
extern "C" makes a function-name in C++ have 'C' linkage (compiler does not mangle the name) so that client C code can link to (i.e use) your function using a 'C' compatible header file that contains just the declaration of your function.
Similar questions